encoding incompatibility? help...

Alright.. I think I've got it fixed.

Assuming that the skin has the "charset" set (for the enhanced skin anyway) to "windows-1251", the characters are staying as they should (as far as I can tell). I am forcing them to be encoded when displayed, but created an encoding table (based on http://www.kostis.net/charsets/cp1251.htm) to include the correct entity numbers. I'm making a release tomorrow so you can let me know if it's working or if it needs more work.

John
 
Hello,

Actually, I've been looking at it more and am realizing what Clayrabbit was saying:

"DirectAdmin MUST NOT convert characters to htmlentities before displaing, because he can't determine original codepage of single-byte characters in file."

so I'll not encode any charcters larger than 127 which will allow all characters of any characterset to work (Which should include Hebrew).

We'll get it working in the end ;)

John
 
try this one.

seem vacation message not encoding with "UTF-8" at beginning
So we need to change from iso-8559-1 (default encode) to "UTF-8"
by this,

cd /usr/local/directadmin/data/skins/enhanced
cp -p lang/en/lf_standard.html lang/en/my_lf_standard.html
perl -pi -e 's/iso-8859-1/UTF-8/' lang/en/my_lf_standard.html
echo "LF_STANDARD=my_lf_standard.html" >> files_custom.conf

after that try to set vacation message with "Japanese" or "Thai" lang again.
After test seem it work!!

I could read vacation message in "Thai" and "Japanese" normally.
 
Back
Top