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

2003-10-09 Thread - Edwin -
Hi, (Long time...) On Sat, 04 Oct 2003 21:01:46 -0400 Gerard Samuel <[EMAIL PROTECTED]> wrote: > - Edwin - wrote: > > > "Far east languages" are not necessarily in this form: "&#n;" > > So, > > > >running htmlspecialchars() on, say, Japanese characters would do NO > >harm since &, ", ', <,

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

2003-10-04 Thread Gerard Samuel
Curt Zirzow wrote: 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 charac

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

2003-10-04 Thread Curt Zirzow
* Thus wrote Gerard Samuel ([EMAIL PROTECTED]): > CPT John W. Holmes wrote: > > >From: "Eugene Lee" <[EMAIL PROTECTED]> > > > > > > > >>On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: > >>: > >>: Got a problem with htmlspecialchars being too greedy, where > >>: for example, it conv

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

2003-10-04 Thread Curt Zirzow
* Thus wrote Gerard Samuel ([EMAIL PROTECTED]): > - Edwin - wrote: > > >"Far east languages" are not necessarily in this form: "&#n;" So, > > > >running htmlspecialchars() on, say, Japanese characters would do NO > >harm since &, ", ', <, > are NOT Japanese characters ;) > > > >Or, am I missin

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

2003-10-04 Thread Gerard Samuel
- Edwin - wrote: "Far east languages" are not necessarily in this form: "&#n;" 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 d

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

2003-10-02 Thread - Edwin -
On Thu, 2 Oct 2003 03:58:48 -0500 Eugene Lee <[EMAIL PROTECTED]> wrote: > On Thu, Oct 02, 2003 at 05:15:32PM +0900, - Edwin - wrote: > : > : On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <[EMAIL PROTECTED]> > wrote:: > > : > There's two issues: input and output. > : > > : > HTML character refere

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

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 05:15:32PM +0900, - Edwin - wrote: : : On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <[EMAIL PROTECTED]> wrote: : > : > There's two issues: input and output. : > : > HTML character references address the problem of displaying certain : > characters on a web browser. This

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

2003-10-02 Thread - Edwin -
But, On Wed, 01 Oct 2003 14:46:14 -0400 Gerard Samuel <[EMAIL PROTECTED]> wrote: ...[snip]... > When I say that I don't know what characters Im expecting. > Im not talking about normal html entities, like &   < > Im talking about chinese/japanese/korean/taiwanese alphabet, numbers > > (even pun

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

2003-10-02 Thread - Edwin -
On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <[EMAIL PROTECTED]> 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 &   < > : Im talking about chinese/japane

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

2003-10-01 Thread Eugene Lee
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 &   < : Im talking about chinese/japanese/korean/taiwanese alphabet, numbers : (even punctuation if applicable). : Maybe

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

2003-10-01 Thread Gerard Samuel
Eugene Lee wrote: On Wed, Oct 01, 2003 at 02:02:08PM -0400, Gerard Samuel wrote: : CPT John W. Holmes wrote: : >From: "Eugene Lee" <[EMAIL PROTECTED]> : >>On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : >>: : >>: Got a problem with htmlspecialchars being too greedy, where : >>: fo

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

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 02:02:08PM -0400, Gerard Samuel wrote: : CPT John W. Holmes wrote: : >From: "Eugene Lee" <[EMAIL PROTECTED]> : >>On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : >>: : >>: Got a problem with htmlspecialchars being too greedy, where : >>: for example, it conve

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

2003-10-01 Thread Gerard Samuel
CPT John W. Holmes wrote: From: "Eugene Lee" <[EMAIL PROTECTED]> On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : Got a problem with htmlspecialchars being too greedy, where : for example, it converts : &foo; : to : &foo; : : Yes it displays correctly in the browser for some

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

2003-10-01 Thread CPT John W. Holmes
From: "Eugene Lee" <[EMAIL PROTECTED]> > On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: > : > : Got a problem with htmlspecialchars being too greedy, where > : for example, it converts > : &foo; > : to > : &foo; > : > : Yes it displays correctly in the browser for some content, but

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

2003-09-30 Thread Eugene Lee
On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : Got a problem with htmlspecialchars being too greedy, where : for example, it converts : &foo; : to : &foo; : : Yes it displays correctly in the browser for some content, but not all. : (an example is posted below) : So I came u