For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > February 2005 > Re: [PHP-DOC] Character encoding problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DOC] Character encoding problem
Derick Rethans

2005-02-18, 3:56 pm

On Fri, 18 Feb 2005, Nuno Lopes wrote:

> Thats why I've proposed to start building all manuals in UTF-8 (and set the
> phpweb headers to utf-8) to avoid these kind of problems.


We already do that ;-)

> The english manual also has this problem, because the manual is now
> built in utf-8 and the headers say ISO-8859-1 (bug #31561).


Already fixed, I'll close the bug report too.

Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
Nuno Lopes

2005-02-18, 3:56 pm

> On Fri, 18 Feb 2005, Nuno Lopes wrote:
>
>
> We already do that ;-)


I'm not sure of that..

From the configure.in script:

case "$LANG" in
ja|ko|pt_BR) ENCODING="UTF-8";;
zh_tw|zh_hk) ENCODING="big5";;
zh_cn) ENCODING="gb2312";;
cs|hu|pl|ro|sk) ENCODING="ISO-8859-2";;
ar) ENCODING="ISO-8859-6";;
tr) ENCODING="ISO-8859-9";;
he) ENCODING="ISO-8859-8";;
ru) ENCODING="windows-1251";;
el) ENCODING="ISO-8859-7";;
*) ENCODING="ISO-8859-1";;
esac

case "$ENCODING" in
big5)
SP_OPTIONS="SP_ENCODING=big5 SP_CHARSET_FIXED=YES"
;;
gb2312)
SP_OPTIONS="SP_ENCODING=gb2312 SP_CHARSET_FIXED=YES"
;;
(..)
ISO-8859-8)
SP_OPTIONS="SP_ENCODING=ISO-8859-8"
HTMLHELP_ENCODING="windows-1255"
;;
ISO-8859-9)
SP_OPTIONS="SP_ENCODING=ISO-8859-9"
HTMLHELP_ENCODING="windows-1254"
;;
windows-1251)
SP_OPTIONS="SP_ENCODING=windows-1251"
HTMLHELP_ENCODING="windows-1251"
;;
*)
SP_OPTIONS="SP_ENCODING=XML SP_CHARSET_FIXED=YES"
;;
esac


So, it looks that some languages aren't build in utf-8, like: he, zh_tw,
zh_hk, zh_cn, tr and ru.


>
> Already fixed, I'll close the bug report too.


I already closed it :)

Nuno
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com