Hi there, I don't know where or who to ask for favour like this, so might as well try it here. I am from the doc-tw group and found out that there is an error in the doc-tw "configure" script and another one in an dsssl file.

Currently, the default encoding for doc-tw is ISO-8859-1, which result in displaying of Tranditional Chinese characters incorrectly. The correct encoding should be "BIG5". So, here I found the error in /home/xxx/phpdoc/configure file
------somewhere in configure------------------
case "$LANG" in
ja|tw|ko) ENCODING="UTF-8";;
zh_hk) ENCODING="big5";;
zh_cn) ENCODING="gb2312";;
.
.
.
*) ENCODING="ISO-8859-1";;
esac
---------------------------------------------
What's wrong:
1) The correct encoding for tw should be "BIG5", not "UTF-8"
2) The correct language code for Traditional Chinese is "zh_tw", not "tw". As a result, Tranditional Chinese fall into the "*" encoding group and hence becomes "ISO-8859-1".

So, there should be a line like
zh_tw|zh_hk) ENCODING="big5";; in the "configure" file...

Another file that contains an error is

/home/xxx/phpdoc/dsssl/html-locale.dsl

The last line of that dsl file is:
'(("META" ("HTTP-EQUIV" "Content-type") ("CONTENT" "text/html;
charset=iso-8859-1"))))

That results in the HTML file generated with a meta tag like:
<meta HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1">
which, again, result in wrong encoding.

Again, that line in the dsl file should be:
'(("META" ("HTTP-EQUIV" "Content-type") ("CONTENT" "text/html;
charset=big5"))))

Well, if you know who or where I should send a request like this to, please let me know... Or, if you are the one maintain the configure file, and don't get what I mean, feel free to contact me -> [EMAIL PROTECTED]

Thank you....

Kevin



--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to