everisk Posted August 1, 2009 Share Posted August 1, 2009 I pass 2 Thai characters via AJAX (jQuery) and got %u0E19%u0E32. I have no idea how to decode it. Any idea is great appreciated. Thanks! Link to comment Share on other sites More sharing options...
bundyxc Posted August 1, 2009 Share Posted August 1, 2009 Maybe this is just something I'm not versed in, but what you just said doesn't make any sense to me. It would help if you explained exactly what you need, and exactly what "%u0E19%u0E32" is (or where it came from). Link to comment Share on other sites More sharing options...
everisk Posted August 1, 2009 Author Share Posted August 1, 2009 It is just 2 Thai characters. I post the form data via AJAX and echo it to get "%u0E19%u0E32". It is encoded but I just couldn't figure out how to decode it or what kind of encoding that is. Link to comment Share on other sites More sharing options...
Daniel0 Posted August 2, 2009 Share Posted August 2, 2009 urldecode Link to comment Share on other sites More sharing options...
shadiadiph Posted August 2, 2009 Share Posted August 2, 2009 dont know if you re using any html in your page but when i made a site in thai before i had to use the correct iso content headers or it would come out in gibberish Link to comment Share on other sites More sharing options...
everisk Posted August 4, 2009 Author Share Posted August 4, 2009 Both adding header and urldecode() dont work for me The actual page is in UTF-8 and actually the value is passed via editinplace function which i think use javascript prototype to pass the value via AJAX. Link to comment Share on other sites More sharing options...
shadiadiph Posted August 11, 2009 Share Posted August 11, 2009 I did just read this somewhere regarding Thai language When using the PHP URL encoding functions it is important to use the rawurlencode function as opposed to the urlencode function. The function can be used in the following manner: dont know if it will be of any help this would mean you would have to use rawurldecode Link to comment Share on other sites More sharing options...
shadiadiph Posted August 11, 2009 Share Posted August 11, 2009 Here is another resource you might want to have a look at http://tlt.its.psu.edu/suggestions/international/bylanguage/thaichart.html Link to comment Share on other sites More sharing options...
Daniel0 Posted August 11, 2009 Share Posted August 11, 2009 Already solved it for him in another topic: http://www.phpfreaks.com/forums/index.php/topic,263568.msg1243201.html#msg1243201 Link to comment Share on other sites More sharing options...
Recommended Posts