reference/xml/functions/utf8-encode.xml
99d758bd259fa80c2828cf8cc250984cb683ee8f
...
...
@@ -1,91 +0,0 @@
1
-
<?xml version="1.0" encoding="utf-8"?>
2
-
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.utf8-encode">
4
-
<refnamediv>
5
-
<refname>utf8_encode</refname>
6
-
<refpurpose>Encodes an ISO-8859-1 string to UTF-8</refpurpose>
7
-
</refnamediv>
8
-
9
-
<refsect1 role="description">
10
-
&reftitle.description;
11
-
<methodsynopsis>
12
-
<type>string</type><methodname>utf8_encode</methodname>
13
-
<methodparam><type>string</type><parameter>data</parameter></methodparam>
14
-
</methodsynopsis>
15
-
<para>
16
-
This function converts the string <parameter>data</parameter> from the
17
-
<literal>ISO-8859-1</literal> encoding to <literal>UTF-8</literal>.
18
-
</para>
19
-
<note>
20
-
<para>
21
-
Many web pages marked as using the <literal>ISO-8859-1</literal> character
22
-
encoding actually use the similar <literal>Windows-1252</literal> encoding,
23
-
and web browsers will interpret <literal>ISO-8859-1</literal> web pages as
24
-
<literal>Windows-1252</literal>. <literal>Windows-1252</literal> features
25
-
additional printable characters, such as the Euro sign
26
-
(<literal>€</literal>) and curly quotes (<literal>“</literal>
27
-
<literal>”</literal>), instead of certain <literal>ISO-8859-1</literal>
28
-
control characters. This function will not convert such
29
-
<literal>Windows-1252</literal> characters correctly. Use a different
30
-
function if <literal>Windows-1252</literal> conversion is required.
31
-
</para>
32
-
</note>
33
-
</refsect1>
34
-

35
-
<refsect1 role="parameters">
36
-
&reftitle.parameters;
37
-
<para>
38
-
<variablelist>
39
-
<varlistentry>
40
-
<term><parameter>data</parameter></term>
41
-
<listitem>
42
-
<para>
43
-
An ISO-8859-1 string.
44
-
</para>
45
-
</listitem>
46
-
</varlistentry>
47
-
</variablelist>
48
-
</para>
49
-
</refsect1>
50
-

51
-
<refsect1 role="returnvalues">
52
-
&reftitle.returnvalues;
53
-
<para>
54
-
Returns the UTF-8 translation of <parameter>data</parameter>.
55
-
</para>
56
-
</refsect1>
57
-

58
-
<refsect1 role="seealso">
59
-
&reftitle.seealso;
60
-
<para>
61
-
<simplelist>
62
-
<member><function>utf8_decode</function> - Performs the reverse conversion</member>
63
-
<member><function>mb_convert_encoding</function> - Converts between various character encodings, including UTF-8, ISO-8859-1 and Windows-1252</member>
64
-
<member><function>iconv</function> - Converts between various character encodings</member>
65
-
<member><function>recode_string</function> - Converts between various character encodings</member>
66
-
</simplelist>
67
-
</para>
68
-
</refsect1>
69
-

70
-
</refentry>
71
-

72
-
<!-- Keep this comment at the end of the file
73
-
Local variables:
74
-
mode: sgml
75
-
sgml-omittag:t
76
-
sgml-shorttag:t
77
-
sgml-minimize-attributes:nil
78
-
sgml-always-quote-attributes:t
79
-
sgml-indent-step:1
80
-
sgml-indent-data:t
81
-
indent-tabs-mode:nil
82
-
sgml-parent-document:nil
83
-
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
84
-
sgml-exposed-tags:nil
85
-
sgml-local-catalogs:nil
86
-
sgml-local-ecat-files:nil
87
-
End:
88
-
vim600: syn=xml fen fdm=syntax fdl=2 si
89
-
vim: et tw=78 syn=sgml
90
-
vi: ts=1 sw=1
91
-
-->
92
0