htmlentities and locales

From: Date: Mon, 21 May 2001 14:32:27 +0000
Subject: htmlentities and locales
Groups: php.dev 
Request: Send a blank email to php-dev+get-56059@lists.php.net to get a copy of this message
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.

« previous php.dev (#56059) next »