Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

From: - Edwin - (copperwa11s_at_yahoo.co.jp)
Date: 10/02/03


Date: Thu, 2 Oct 2003 17:15:32 +0900
To: Eugene Lee <list-php-1@fsck.net>

On Thu, 2 Oct 2003 01:54:43 -0500
Eugene Lee <list-php-1@fsck.net> wrote:

> On Wed, Oct 01, 2003 at 02:46:14PM -0400, Gerard Samuel wrote:
> :
> : When I say that I don't know what characters Im expecting.
> : Im not talking about normal html entities, like &amp; &nbsp &lt;
> : Im talking about chinese/japanese/korean/taiwanese alphabet,
> numbers : (even punctuation if applicable).
> : Maybe Im thinking too hard, but trying to take far east languages
> : alphanumeric charaters into account,
> : seems like overkill.
> : Feel free to correct me.
>
> Okay, I will. :-)
>
> 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.

?

- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/



Relevant Pages

  • Re: yahoo mail wont work at all
    ... Or format of the server name? ... characters for 'denshi', plus the 'katakana' characters for 'mail' ... You _do_ have to subscribe to Yahoo! ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Forcing Stronger Passwords
    ... down on the lame passwords people have been selecting ... the default config forces a password of at ... least 6 characters and at least one numeric or special ... Do you Yahoo!? ...
    (SunManagers)
  • Re: [PHP] storing japanese in mysql (or pgsql)
    ... > I'm working on a small study aid for myself (and anyone else that wants ... > characters in a MySQL or pgsql db. ... Do You Yahoo!? ...
    (php.general)
  • Re: match file name at end of a http url
    ... Please let me know in case you find any bugs in this ... characters after the first slash are ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (perl.beginners)
  • Re: Anyone having this problem?
    ... > It's an anti-spam strategy implemented by Yahoo. ... > Spambots can't "read" and respond to the dialog ... >> asked to type the characters into a blank line before the mail would ...
    (microsoft.public.windowsxp.general)

Loading