Entry
How can I show Oracle results in tranditional Chinese(big 5) with PHP?
Feb 16th, 2000 11:08
Matt Gregory, alesi way,
Since chinese has far more characters ( or letters if you will) than
latin-based languages there are two things you need to keep in mind:
1.) double the number of bytes needed to store results:
Each character which forms a word in oriental languages is stored
in a two-byte format to accomodate for the huge number of
possibilites
2.) Do not perform any string manipulation functions using the data
unless you are really-really good at guessing offsets and manipulating
binary conversions for your characters. All string functions in PHP
assume a 1 byte standard ASCII format for the strings being input.
Bottom line: treat chinese text like binary data when sent to the
client machine. Let the client browser handle it using a utility like
njstar (http://www.njstar.com)