File: iconv.xml

package info (click to toggle)
phpdoc 20020310-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 35,272 kB
  • ctags: 354
  • sloc: xml: 799,767; php: 1,395; cpp: 500; makefile: 200; sh: 140; awk: 51
file content (184 lines) | stat: -rw-r--r-- 5,991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.4 $ -->
 <reference id="ref.iconv">
  <title>iconv functions</title>
  <titleabbrev>iconv</titleabbrev>

  <partintro>
   <para>
    이 모듈은 iconv 라이브러리 함수의 인터페이스를 내포한다.
    이 모듈 내에 정의된 함수를 사용하기 위해서는
    --with-iconv 옵션을 사용하여 PHP 인터프리터를 컴파일해야 한다.
    그러기 위해서는, 표준 C 라이브러리에서 iconv() 함수를 갖고 있거나
    libiconv가 설치되어 있어야 한다.
    libiconv library is available from <ulink url="&url.libiconv;">
     &url.libiconv;</ulink>.
   </para>

   <para>
    iconv 라이브러리 함수는 여러가지로 인코딩된 문자셋의 파일들을
    변환한다. 지원되는 문자셋은 로컬 시스템 상의 iconv()함수에 의해 
    결정된다. 어떤 시스템의 iconv() 함수는 제대로 작동되지 않을수 있다.
    이 경우에는 libiconv 라이브러리를 설치해야 한다.
   </para>
  </partintro>

  <refentry id="function.iconv">
   <refnamediv>
    <refname>iconv</refname>
    <refpurpose>원하는 문자 인코딩으로 변환한다</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>string</type><methodname>iconv</methodname>
      <methodparam><type>string</type><parameter>in_charset</parameter></methodparam>
      <methodparam><type>string</type><parameter>out_charset</parameter></methodparam>
      <methodparam><type>string</type><parameter>str</parameter></methodparam>
     </methodsynopsis>
    <para>
     <parameter>in_charset</parameter>으로 인코드된 <parameter>string</parameter>을
     <parameter>out_charset</parameter>으로 인코딩된 string으로
     변환한다. 변환된 문자열을 리턴하거나, 실패하면 &false;을 리턴한다.
    </para>
    <para>
     <example>
      <title><function>iconv</function> example:</title>
      <programlisting role="php">
<![CDATA[
echo iconv("ISO-8859-1","UTF-8","This is test.");
]]>
      </programlisting>
     </example>
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.iconv-get-encoding">
   <refnamediv>
    <refname>iconv_get_encoding</refname>
    <refpurpose>
     문자 인코딩 변환을 위한 현재 설정 상태를 문의
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>iconv_get_encoding</methodname>
      <methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam>
     </methodsynopsis>
    <para>
     배열로서 <function>ob_iconv_handler</function>함수의
     현재 설정을 리턴하고,  실패하면, &false;을 리턴한다.
    </para>
    <para>
     See also: 
     <function>iconv_set_encoding</function> and
     <function>ob_iconv_handler</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.iconv-set-encoding">
   <refnamediv>
    <refname>iconv_set_encoding</refname>
    <refpurpose>
     문자 인코딩 변환을 설정
     Set current setting for character encoding conversion
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>iconv_set_encoding</methodname>
      <methodparam><type>string</type><parameter>type</parameter></methodparam>
      <methodparam><type>string</type><parameter>charset</parameter></methodparam>
     </methodsynopsis>
    <para>
     <parameter>type</parameter>을 <parameter>charset</parameter>로
     변경하고 성공하면 &true;를 실패하면 &false;를 리턴한다.
    </para>
    <para>
     <example>
      <title><function>iconv_set_encoding</function> example:</title>
      <programlisting role="php">
<![CDATA[
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-1");
]]>
      </programlisting>
     </example>
    </para>
    <para>
     See also: 
     <function>iconv_get_encoding</function> and
     <function>ob_iconv_handler</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.ob-iconv-handler">
   <refnamediv>
    <refname>ob_iconv_handler</refname>
    <refpurpose>
     출력 버퍼 핸들러로 문자 엔코딩을 변환한다
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>ob_iconv_handler</methodname>
      <methodparam><type>string</type><parameter>contents</parameter></methodparam>
      <methodparam><type>int</type><parameter>status</parameter></methodparam>
     </methodsynopsis>
    <para>
     <parameter>internal_encoding</parameter>에서 인코딩된
     문자열을 <parameter>output_encoding</parameter>로 변환한다.
    </para>
    <para>
     <parameter>internal_encoding</parameter>과
     <parameter>output_encoding</parameter>는 
     <function>iconv_set_encoding</function>함수나 설정파일에서
     정의되어있어야 한다.
    </para>
    <para>
     <example>
      <title><function>ob_iconv_handler</function> example:</title>
      <programlisting role="php">
<![CDATA[
ob_start("ob_iconv_handler"); // start output buffering
]]>
      </programlisting>
     </example>
    </para>
    <para>
     See also: 
     <function>iconv_get_encoding</function> and
     <function>iconv_set_encoding</function>.
    </para>
   </refsect1>
  </refentry>

 </reference>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->