Re: Attempt at putting greedy htmlspecialchars on a diet

From: Date: Fri, 10 Oct 2003 03:57:40 +0000
Subject: Re: Attempt at putting greedy htmlspecialchars on a diet
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-165697@lists.php.net to get a copy of this message
Hi, (Long time...) On Sat, 04 Oct 2003 21:01:46 -0400 Gerard Samuel <gsam@trini0.org> wrote: > - 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; Hmm... I don't think that's the way they're stored--maybe the way you see them esp. if you're doing the query on a "terminal" that doesn't support the encoding in question... > Also, I've seen it in that form in the $_POST array from a form. I've never seen this one. For example, any Japanese characters $_POSTed would *always* show them as they were when you do a print_r($_POST). If not, most probably it has something to do with the way you display the page (e.g. wrong encoding). - E - __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/

« previous php.general (#165697) next »