[pmwiki-users] UTF-8 as core default encoding (was: Headers are notsending charset !)

Patrick R. Michaud pmichaud at pobox.com
Mon Mar 12 10:20:05 CDT 2007


On Mon, Mar 12, 2007 at 05:12:20PM +0200, Athan wrote:
> "Patrick R. Michaud" <pmichaud at pobox.com> wrote in message 
> news:20070312140329.GD29823 at host.pmichaud.com...
> > Many case-insensitive functions cease to be case-insensitive for utf-8;
> > in particular, the '/i' flag to preg_match and preg_replace patterns
> > doesn't seem to work for non-ASCII letters.
> 
> Correct but mbstrings and many other utf8 wrapper libs exist and work. 

AFAICT, none of them support preg_match, so they require a workaround.

> > Another limitation is that some locales (e.g., date and time strings
> > returned by PHP's strftime() function) expect to be displayed using an
> > iso-8859-1 character set, and thus won't work properly if utf-8 is chosen.
> 
> Not if using setlocale() and xx_XX.UTF-8. I didn't notice any problem using 
> such locales and strftime().

Lots of hosts do not support xx_XX.UTF-8 .

Pm



More information about the pmwiki-users mailing list