From: Mici M. <mm...@fr...> - 2006-08-14 06:28:04
|
Hi, thanks for your answer but it's not so easy. PhpWiki uses htmlspecialchars() to masq strings, and PhpWiki passes a third argument to it containing the charset name. htmlspecialchars() does not know about latin2, it gives warnings. lib/XmlElement.php...: 502: Warning: htmlspecialchars(): charset `iso-8859-2' not supported, assuming iso-8859-1 lib/XmlElement.php...: 170: Warning: htmlspecialchars(): charset `iso-8859-2' not supported, assuming iso-8859-1 These two lines (502 and 170) are giving the message but lots of times in a page request. What's wrong? May I upgrade or reconfigure php to work, or the htmlspecialchars() function needs a workaround in PhpWiki? [phpwiki-1.3.12p3] [php-4.4.2-1.1] --=20 mm. Reini Urban <ru...@x-...> =EDrta: > [redirected to the mailing list, I hate the tracker] >=20 > SourceForge.net schrieb: > > Read and respond to this message at:=20 > > https://sourceforge.net/forum/message.php?msg_id=3D3865587 > > By: mmaci > >=20 > > Hi, > >=20 > > I'm interested in making a hungarian site driven by PhpWiki. But there's a > > probleme: our national charset contains two additional characters to iso-8859-1, > > "o and "u (the long versions of =F6 and =FC), that is only found in iso-8859-2. > > These chars are frequent in hungarian, and it's impossible to leave them or > > interchange them with latin1 chars. It would real ugly. The other thing is > > that I have to use these characters in WikiNames, but current version of PhpWiki > > does not support it. Xxx=F3=E1Yyy is ready (latin1 chars are usable), but if I > > change =F3=E1 to "o, it fails, and square brackets does not help. The [] creates > > a link, but "o and "u is viewd as & #337 ; and & #369 ; . Could You please > > help me how to solve the probleme? Is it a big work to add latin2 support into > > PhpWiki? >=20 > Normally it should work out of the box when you > define('CHARSET', 'iso-8859-2'); > (or define it in the config.ini) > and your php supports it (via iconv) in the pcre functions. > mbstring should not be needed afaik. latin-2 is single-byte. >=20 > > I promise I'll gift the project with a hu.po file if iso-8859-2 will be ok... > > Now there's nothing to it. >=20 > Personally I'd rather prefer a cool layout in a new template, but we=20 > accept hungarian also :) > --=20 > Reini Urban > http://phpwiki.org/ http://murbreak.at/ > http://helsinki.at/ http://spacemovie.mur.at/ > =0A=0A______________________________________________ Dobd fel a napod, dobd fel a vide=F3id! http://videa.hu |