Re: Attempt at putting greedy htmlspecialchars on a diet
| From: | - Edwin - | Date: | Thu, 02 Oct 2003 09:18:22 +0000 |
| Subject: | Re: Attempt at putting greedy htmlspecialchars on a diet | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164711@lists.php.net to get a copy of this message | ||
On Thu, 2 Oct 2003 03:58:48 -0500
Eugene Lee <list-php-1@fsck.net> wrote:
> On Thu, Oct 02, 2003 at 05:15:32PM +0900, - Edwin - wrote:
> :
> : On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <list-php-1@fsck.net>
> wrote:: >
> : > There's two issues: input and output.
> : >
> : > HTML character references address the problem of displaying
> certain: > characters on a web browser. This is an output issue.
> : >
> : > When you get CJKV data, you are most likely getting it in some
> : > encoding. Different Asian languages use their own encoding sets.
>
> : > For example, if you get Japanese text, it will be encoded in
> JIS,: > Shift-JIS, EUC, or something Unicode. You *have* to
> determine the: > type of data and its encoding. This is an input
> issue.:
> : Hmm... but the characters in question were already (at least in
> the: examples used) in "something" Unicode (&#nnnnn;). So, there's
> really: no need to know whether it's JIS, Shift-JIS, EUC, etc.
>
> The Chinese characters in question were already converted to their
> HTML numeric character references. That's because someone made the
> conscious and purposeful decision to provide the correct Unicode
> decimal numbers for those Chinese characters. Your concern about
> accepting CJKV data is vague because you don't explain the source of
> the data or the encoding method of the data.
I can't really tell you that since *I* wasn't the OP ;)
> You must determine these critical bits of info
> before you can decide how to display the data.
Unless you know it's already in unicode...
> There's no guarantee
> that the user will send you CJKV data in nice HTML numeric character
> references.
Very true.
> I'm not even sure exactly what you're trying to do.
Again, it's not me ;) (Wrong thread!)
But, I'm wondering as well, I'm not even sure exactly what the
original poster is trying to do. :)
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/