Hi there,
I have a PHP script written to go through, and parse a collection of data in HTML. It goes through and replaces certain words (In either chinese or spanish), and translates them to what has been set and the correct english alternative.
To do this, I've used an array and the str_replace command. But I have one little problem... since I am dealing with chinese characters, they show up oddly in the source. Thi sis no problem, since the source code is what you paste in the text box and submit... however, the chinese comes out using lots of quotation marks in places ("),
So to bypass this and have php know it's pary of the string, I use \" for all quotation marks. But it's not actually recognizing all of these. For instance:
"iwDD will correct to to FLYING using "\"iwdd", (as it shows in the array)
but,
I"u~Na will not be corrected to STEAL LIFE if I use "I\"u~Na", as shown in the array.
This happens to several such 'words' in the array. Is there anyway around this?
Thanks,