PHP, htmlspecialchars(), charset iso-8859-2 not supported

Vladimir Dvorak dvorakv at vdsoft.org
Tue May 9 13:34:10 CEST 2006


Michal Cumpl wrote:

>Mate pravdu, fce htmlspecialchars() opravdu nepodporuje iso8859-2 ani cp1251.
>
>Viz: http://nl.php.net/manual/en/function.htmlspecialchars.php
>
>Zkusil bych zminovany UTF-8 zpusob, jinak to zrejme nepujde.
>
>Michal
>
>  
>
Diky.

Reseni je zde:

mv strings_czech.txt strings_czech.txt.bak
iconv -f iso-8859-2 -t utf-8 strings_czech.txt.bak > strings_czech.txt

vi strings_czech.txt
$s_charset = 'UTF-8';


Vladimir Dvorak



More information about the Users-l mailing list