Unicode!
Posted: Sun Nov 20, 2005 7:00 pm
Argh... I think the problem is a combination between my text-editor's crappy unicode support and some missing stuff.
Here's what it shows on my text editor:
Here is the source file displays as: http://www.taijiclub.org/data/Contact.html
Here is what it gets output as: http://www.taijiclub.org/Contact
Is essentially all that's being done, and then it's echoed (and yes, $PAGE is validated earlier).
So something's gone terribly wrong.
I'm using UltraEdit-32 8.00
Here is some more information: the binary composition of the Contact.html
What I think is happening is that UltraEdit, when in Unicode mode, is padding all the characters with 00, a nonstandard implementation of Unicode. Firefox and PHP interprets them differently, so there's stuff lost in the translation.
I've tried doing reading on Unicode, and I sorta understand what is going on, but I don't know what to do. Help!
Here's what it shows on my text editor:
Code: Select all
<h2>President</h2>
<div>曾晓霞 (Sally Zeng)</div>
Tel. 732-723-1274
xiaoxiazng@yahoo.com
<h2>Vice President</h2>
李台光 (Taikwang Lee)
Tel. 732-805-0864
taikwangmlee@yahoo.comHere is what it gets output as: http://www.taijiclub.org/Contact
Code: Select all
$CONTENTS = file_get_contents('data/' . $PAGE . '.html');So something's gone terribly wrong.
I'm using UltraEdit-32 8.00
Here is some more information: the binary composition of the Contact.html
Code: Select all
--file start--
FF FE 3C 00
68 00 32 00
3E 00 50 00
72 00 65 00
--snip--
FE 66 53 55 (chinese characters)
1E 97 20 00I've tried doing reading on Unicode, and I sorta understand what is going on, but I don't know what to do. Help!