Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 3996

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>px_set_targetencoding</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Paradox File Access"
HREF="ref.paradox.html"><LINK
REL="PREVIOUS"
TITLE="px_set_tablename"
HREF="function.px-set-tablename.html"><LINK
REL="NEXT"
TITLE="px_set_value"
HREF="function.px-set-value.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.px-set-tablename.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.px-set-value.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.px-set-targetencoding"
></A
>px_set_targetencoding</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN168213"
></A
><P
>    (PECL)</P
>px_set_targetencoding&nbsp;--&nbsp;Sets the encoding for character fields (deprecated)</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN168216"
></A
><H2
>说明</H2
>bool <B
CLASS="methodname"
>px_set_targetencoding</B
> ( resource pxdoc, string encoding )<BR
></BR
><P
>&#13;   Set the encoding for data retrieved from a character field. All character
   fields will be recoded to the encoding set by this function. If the
   encoding is not set, the character data will be returned in the DOS code
   page encoding as specified in the database file. The
   <CODE
CLASS="parameter"
>encoding</CODE
> can be any string identifier known to
   iconv or recode. On Unix systems run <TT
CLASS="literal"
>iconv -l</TT
> for
   a list of available encodings.
  </P
><P
>This function is deprecated and should be replaced by calling
   <A
HREF="function.px-set-parameter.html"
><B
CLASS="function"
>px_set_parameter()</B
></A
>.
  </P
><P
>&#13;   See also <A
HREF="function.px-get-info.html"
><B
CLASS="function"
>px_get_info()</B
></A
> to determine the DOS code page
   as stored in the database file.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN168234"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>pxdoc</CODE
></DT
><DD
><P
>&#13;       Resource identifier of the paradox database
       as returned by <A
HREF="function.px-new.html"
><B
CLASS="function"
>px_new()</B
></A
>.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>encoding</CODE
></DT
><DD
><P
>&#13;       The encoding for the output. Data which is being read from
       character fields is recoded into the targetencoding.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN168249"
></A
><H2
>返回值</H2
><P
>&#13;   Returns <TT
CLASS="constant"
><B
>FALSE</B
></TT
> if the encoding could not be set, e.g. the encoding is
   unknown, or pxlib does not support recoding at all. In the second case a
   warning will be issued.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN168253"
></A
><H2
>参见</H2
><P
>&#13;    <A
HREF="function.px-set-parameter.html"
><B
CLASS="function"
>px_set_parameter()</B
></A
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.px-set-tablename.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.px-set-value.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>px_set_tablename</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.paradox.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>px_set_value</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>