* Thus wrote Gerard Samuel ([EMAIL PROTECTED]): > - Edwin - wrote: > > >"Far east languages" are not necessarily in this form: "&#nnnnn;" So, > > > >running htmlspecialchars() on, say, Japanese characters would do NO > >harm since &, ", ', <, > are NOT Japanese characters ;) > > > >Or, am I missing something? :) > > > Not exactly. When storing "far east languages" in a database for > example, thats the format its stored as. > &#xxxxx; > Also, I've seen it in that form in the $_POST array from a form.
That is an html entity and is not how it is stored. How that entity gets displayed depends entirely on what encoding you have set for the page. The japanese characters (charset ISO-2022-JP) to use to display the phrase for 'Contents' is: ^[$B$3$s$F$s$D^[(B (^[ == escape character) I can store those exact characters (with the proper escape character) in a database without a problem Curt -- List Stats: http://zirzow.dyndns.org/html/mlists/php_general/ "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php