Possible Duplicate:
PHP : Array key containing special character not found
I am comparing strings to determine corresponding numbers for the strings. The one set of strings is stored in a MySQL DB and the other set of strings are stored as keys for an array in php.
When trying to lookup the following string, it is not found in the array. "Child attending pre-school/nursery school/crèche/day-mother"
More information on the code is available in this previous question that led me to the following test.
After doing a hex dump as suggested, I got the following results
From MySQL DB:
43 68 69 6c 64 20 61 74 74 65 6e 64 69 6e 67 20 70 72 65 2d 73 63 68 6f 6f 6c 2f 6e 75 72 73 65 72 79 20 73 63 68 6f 6f 6c 2f 63 72 e8 63 68 65 2f 64 61 79 2d 6d 6f 74 68 65 72
From string in php:
43 68 69 6c 64 20 61 74 74 65 6e 64 69 6e 67 20 70 72 65 2d 73 63 68 6f 6f 6c 2f 6e 75 72 73 65 72 79 20 73 63 68 6f 6f 6c 2f 63 72 c3 a8 63 68 65 2f 64 61 79 2d 6d 6f 74 68 65 72
The difference was "E8" vs "C3A8" or "è" from the MySQL DB vs "è" from the php string.
So how can I go about ensuring the hard coded php array key character remains "è"?