Re: cvs: docweb /cron/monthly howto /include lib_general.inc.php
| From: | Vincent Gevers | Date: | Sat, 22 Jan 2005 10:14:59 +0000 |
| Subject: | Re: cvs: docweb /cron/monthly howto /include lib_general.inc.php | ||
| References: | 1 | Groups: | php.doc.web |
| Request: | Send a blank email to doc-web+get-525@lists.php.net to get a copy of this message | ||
On Friday 21 January 2005 17:32, Nuno Lopes wrote:
> I've switched to UTF-8, otherwise Gabor's name isn't renderered correctly
> :) anyway the switch was going to be needed...
> - $encoding = "iso-8859-1"; // for now
> + $encoding = 'UTF-8';
I'm afraid this actually broke the french docweb text.
We could use the docweb/main.ent file for this, each translation could add an
entity that will override the default value, making there translated site
work.
In phpdoc/configure.in I found this: (might be useful)
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
if test "$LANG_HACK_FOR_HE" = "yes"; then
ENCODING="ISO-8859-8"
fi
UTF-8 only seems to be required for a few languages
Vincent