From: Reini U. <ru...@x-...> - 2006-08-15 13:52:00
|
Mici Maci schrieb: >> We also could simply catch the warning and omit it. >> It's only the stupid warning, isn't it, or is there > functionality >> missing also? > > Simply omitting the warning is not a good idea. There's > no missing functionality in htmlspecialchars, the boot is > on the wrong leg: it replaces ő and ű with &#xxx; type > encodings. Imagine that you store a WikiPage in > hungarian, that contains an ő character. If you click > on the edit button, Wiki gives you back a text for > editing containing &#nnn; replacements... The > htmlspecialchars() makes unneeded replacements > when it treats latin2 as latin1. Very frustrating. Sorry, cannot reproduce. The link to Hungarianőpage is still Hungarianőpage and editing introduces no escaped ő I even checked in the code the support hungarian, more unsupported charsets, into CVS. your workaround functions does the same as the php function htmlspecialchars(), php just prints the warning. With entities it's different, but there are no iso-8591-2 entities to my knowledge. So I'm waiting for your po :) Hopefully some pgsrc also. But even better some fresh and cooler layout. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ |