[PHP-DEV] htmlentities and locales

2001-05-22 Thread Wez Furlong

Hey guys,

I was wondering if anyone has managed to take a look at my patch for
htmlentities() yet?

I would like to commit it this evening; I have been testing it live
in-house and it seems to be working just fine.

--Wez.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] htmlentities and locales

2001-05-21 Thread Wez Furlong

Hey,

I've started to work on making htmlentities aware of different charsets.
Now, the question is, how do we let it know which charset to use?

There is a comment in ext/standard/html.c that says it would be wise to use
the LC_CTYPE setting but the problem is that there is no easy way to
determine the charset from the locale name if it is not included in the
locale name (an implicit character set).

Perhaps it would be better to specify the charset by some other means?
Maybe an optional charset parameter ? (/me ducks to avoid hurled rocks).

Seriously, we need a workable solution; ideally one that works on win32 as
well.

IMHO the locale.h stuff is a bit too black-box if you want to make your own
functions locale aware. (unless I am missing something vital!).

--Wez.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]