Truppe Steven wrote: > Mark Gibson schrieb: >> In PHP have a look at: >> utf8_encode(), iconv, or mbstring > > I think i haven't clearly told my problem: I just have some article > manager where for each article i have some description text (german & > english). At the moment i have one php file loading the text from the > database and pass it to my article manager. Here i just want to send > strings like "Diesen Artikel würde viel kosten" for example (ä). If > i do this without any encoding the strings get damaged and looks strange > because of the way urls are interpreted. So i thought i must > urlencode/urldecode it, as long as i urldecode/urlencode all in php it's > working.
I'm still a bit confused, but I guess you are trying to pass data from PHP to Javascript, and this data may contain character outside the ASCII character set. Javascript works with the Unicode, and your data is probably in ISO-8859-1. In this case I would suggest converting the data using PHP utf8_encode() and pass it in a JSON serialized string. URI's are absolutely useless for this kind of thing. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
