Re: [DOC-WEB] cvs: docweb /cron/monthly howto /include lib_general.inc.php

[email protected] (Vincent Gevers)
Newsgroups php.doc.web
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.