464 |
jpm |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
5 |
<meta name="generator" content="ApiGen 2.8.0">
|
|
|
6 |
|
465 |
jpm |
7 |
<title>Class Encodage</title>
|
464 |
jpm |
8 |
|
|
|
9 |
<script type="text/javascript" src="resources/combined.js?4205936287"></script>
|
465 |
jpm |
10 |
<script type="text/javascript" src="elementlist.js?4111837732"></script>
|
464 |
jpm |
11 |
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
|
|
|
12 |
|
|
|
13 |
</head>
|
|
|
14 |
|
|
|
15 |
<body>
|
|
|
16 |
<div id="left">
|
|
|
17 |
<div id="menu">
|
|
|
18 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
<div id="groups">
|
|
|
22 |
<h3>Packages</h3>
|
|
|
23 |
<ul>
|
|
|
24 |
<li><a href="package-Framework.html">Framework</a>
|
|
|
25 |
</li>
|
|
|
26 |
<li><a href="package-None.html">None</a>
|
|
|
27 |
</li>
|
|
|
28 |
<li><a href="package-PHP.html">PHP</a>
|
|
|
29 |
</li>
|
|
|
30 |
<li class="active"><a href="package-Utilitaire.html">Utilitaire</a>
|
|
|
31 |
</li>
|
|
|
32 |
</ul>
|
|
|
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<hr>
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
<div id="elements">
|
|
|
39 |
<h3>Classes</h3>
|
|
|
40 |
<ul>
|
|
|
41 |
<li><a href="class-Chaine.html">Chaine</a></li>
|
|
|
42 |
<li class="active"><a href="class-Encodage.html">Encodage</a></li>
|
|
|
43 |
<li><a href="class-Fichier.html">Fichier</a></li>
|
|
|
44 |
<li><a href="class-Pattern.html">Pattern</a></li>
|
|
|
45 |
<li><a href="class-Tableau.html">Tableau</a></li>
|
|
|
46 |
</ul>
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
</div>
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|
|
|
55 |
|
|
|
56 |
<div id="splitter"></div>
|
|
|
57 |
|
|
|
58 |
<div id="right">
|
|
|
59 |
<div id="rightInner">
|
|
|
60 |
<form id="search">
|
|
|
61 |
<input type="hidden" name="cx" value="">
|
|
|
62 |
<input type="hidden" name="ie" value="UTF-8">
|
|
|
63 |
<input type="text" name="q" class="text">
|
|
|
64 |
<input type="submit" value="Search">
|
|
|
65 |
</form>
|
|
|
66 |
|
|
|
67 |
<div id="navigation">
|
|
|
68 |
<ul>
|
|
|
69 |
<li>
|
|
|
70 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
71 |
</li>
|
|
|
72 |
<li>
|
|
|
73 |
<a href="package-Utilitaire.html" title="Summary of Utilitaire"><span>Package</span></a>
|
|
|
74 |
</li>
|
|
|
75 |
<li class="active">
|
|
|
76 |
<span>Class</span> </li>
|
|
|
77 |
</ul>
|
|
|
78 |
<ul>
|
|
|
79 |
<li>
|
|
|
80 |
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
|
|
|
81 |
</li>
|
|
|
82 |
<li>
|
|
|
83 |
<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
|
|
|
84 |
</li>
|
|
|
85 |
<li>
|
|
|
86 |
<a href="todo.html" title="Todo list"><span>Todo</span></a>
|
|
|
87 |
</li>
|
|
|
88 |
</ul>
|
|
|
89 |
<ul>
|
|
|
90 |
</ul>
|
|
|
91 |
</div>
|
|
|
92 |
|
|
|
93 |
<div id="content" class="class">
|
|
|
94 |
<h1>Class Encodage</h1>
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
<div class="description">
|
|
|
98 |
|
|
|
99 |
<p>Classe fournissant des méthodes statiques concernant l'encodage et le
|
|
|
100 |
décodage des caractères de variable.</p>
|
|
|
101 |
|
|
|
102 |
</div>
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
<div class="info">
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
<b>Package:</b> <a href="package-Utilitaire.html">Utilitaire</a><br>
|
|
|
117 |
|
|
|
118 |
<b>Category:</b>
|
|
|
119 |
PHP 5.2<br>
|
|
|
120 |
<b>Copyright:</b>
|
|
|
121 |
Copyright (c) 2009, Tela Botanica (<a
|
|
|
122 |
href="mailto:accueil@tela-botanica.org">accueil@<!-- -->tela-botanica.org</a>)<br>
|
|
|
123 |
<b>License:</b>
|
|
|
124 |
<a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL-v3</a><br>
|
|
|
125 |
<b>License:</b>
|
|
|
126 |
<a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL-v2</a><br>
|
|
|
127 |
<b>Author:</b>
|
|
|
128 |
Jean-Pascal MILCENT <<a
|
|
|
129 |
href="mailto:jpm@tela-botanica.org">jpm@<!-- -->tela-botanica.org</a>><br>
|
|
|
130 |
<b>Version:</b>
|
|
|
131 |
$Id: Encodage.php 299 2011-01-18 14:03:46Z jpm $<br>
|
|
|
132 |
<b>Link:</b>
|
|
|
133 |
/doc/framework/<br>
|
465 |
jpm |
134 |
<b>Located at</b> <a href="source-class-Encodage.html#3-56" title="Go to source code">utilitaires/Encodage.php</a><br>
|
464 |
jpm |
135 |
</div>
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
<table class="summary" id="methods">
|
|
|
140 |
<caption>Methods summary</caption>
|
|
|
141 |
<tr data-order="encoderEnUtf8" id="_encoderEnUtf8">
|
|
|
142 |
|
|
|
143 |
<td class="attributes"><code>
|
|
|
144 |
public static
|
|
|
145 |
mixed
|
|
|
146 |
|
|
|
147 |
</code>
|
|
|
148 |
</td>
|
|
|
149 |
|
|
|
150 |
<td class="name"><div>
|
|
|
151 |
<a class="anchor" href="#_encoderEnUtf8">#</a>
|
|
|
152 |
<code><a href="source-class-Encodage.html#16-38" title="Go to source code">encoderEnUtf8</a>( <span>mixed <var>& $variable</var></span>, <span>string <var>$encodage</var> = <span class="php-quote">'ISO-8859-15'</span></span> )</code>
|
|
|
153 |
|
|
|
154 |
<div class="description short">
|
|
|
155 |
|
|
|
156 |
<p>Méthode permettant d'encoder par défaut de ISO-8859-15 vers UTF-8 une
|
|
|
157 |
variable ou un tableau de variables.</p>
|
|
|
158 |
|
|
|
159 |
</div>
|
|
|
160 |
|
|
|
161 |
<div class="description detailed hidden">
|
|
|
162 |
|
|
|
163 |
<p>Méthode permettant d'encoder par défaut de ISO-8859-15 vers UTF-8 une
|
|
|
164 |
variable ou un tableau de variables.</p>
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
<h4>Parameters</h4>
|
|
|
169 |
<div class="list"><dl>
|
|
|
170 |
<dt><var>$variable</var></dt>
|
|
|
171 |
<dd><code>mixed</code><br>la chaine ou le tableau à encoder en UTF-8 depuis ISO-8859-15.</dd>
|
|
|
172 |
<dt><var>$encodage</var></dt>
|
|
|
173 |
<dd><code>string</code><br>l'encodage d'origine si ce n'est pas ISO-8859-15.</dd>
|
|
|
174 |
</dl></div>
|
|
|
175 |
|
|
|
176 |
<h4>Returns</h4>
|
|
|
177 |
<div class="list">
|
|
|
178 |
<code>mixed</code><br>la chaine ou le tableau encodé en UTF-8.<br>
|
|
|
179 |
</div>
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
</div>
|
|
|
185 |
</div></td>
|
|
|
186 |
</tr>
|
|
|
187 |
<tr data-order="detecterUtf8" id="_detecterUtf8">
|
|
|
188 |
|
|
|
189 |
<td class="attributes"><code>
|
|
|
190 |
public static
|
|
|
191 |
boolean
|
|
|
192 |
|
|
|
193 |
</code>
|
|
|
194 |
</td>
|
|
|
195 |
|
|
|
196 |
<td class="name"><div>
|
|
|
197 |
<a class="anchor" href="#_detecterUtf8">#</a>
|
|
|
198 |
<code><a href="source-class-Encodage.html#40-55" title="Go to source code">detecterUtf8</a>( <span>string <var>$chaine</var></span> )</code>
|
|
|
199 |
|
|
|
200 |
<div class="description short">
|
|
|
201 |
|
|
|
202 |
<p>Méthode permettant de détecter réellement l'encodage UTF-8.
|
|
|
203 |
mb_detect_encoding plante si la chaine de caractère se termine par un
|
|
|
204 |
caractère accentué. Provient de PHPDIG.</p>
|
|
|
205 |
|
|
|
206 |
</div>
|
|
|
207 |
|
|
|
208 |
<div class="description detailed hidden">
|
|
|
209 |
|
|
|
210 |
<p>Méthode permettant de détecter réellement l'encodage UTF-8.
|
|
|
211 |
mb_detect_encoding plante si la chaine de caractère se termine par un
|
|
|
212 |
caractère accentué. Provient de PHPDIG.</p>
|
|
|
213 |
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
<h4>Parameters</h4>
|
|
|
217 |
<div class="list"><dl>
|
|
|
218 |
<dt><var>$chaine</var></dt>
|
|
|
219 |
<dd><code>string</code><br>la chaine à vérifier.</dd>
|
|
|
220 |
</dl></div>
|
|
|
221 |
|
|
|
222 |
<h4>Returns</h4>
|
|
|
223 |
<div class="list">
|
|
|
224 |
<code>boolean</code><br>true si c'est de UTF-8, sinon false.<br>
|
|
|
225 |
</div>
|
|
|
226 |
|
|
|
227 |
|
|
|
228 |
|
|
|
229 |
|
|
|
230 |
</div>
|
|
|
231 |
</div></td>
|
|
|
232 |
</tr>
|
|
|
233 |
</table>
|
|
|
234 |
|
|
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
|
|
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
</div>
|
|
|
253 |
|
|
|
254 |
<div id="footer">
|
465 |
jpm |
255 |
API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
|
464 |
jpm |
256 |
</div>
|
|
|
257 |
</div>
|
|
|
258 |
</div>
|
|
|
259 |
</body>
|
|
|
260 |
</html>
|