On Friday 13 April 2007 04:47, lazaros wrote: > Thank you very much for the reply. > I have been working with this problem for a while with a co-worker in the > company that I work. The conclusion is that IE is here to make our work > harder :). When the $_GET value was send to the php page, Firefox handled > it right because it can do utf encoding(am I right?),but IE can't.So what > we had to do is to encode the value before it was sent to php. So in > showCustomer.js we added this simple line: > > var url="showCustomer.php?flag="+flag > url=url+"&initial="+str > url=url+"&customer_radio="+customer_radio > url=url+"&is_prospect="+is_prospect > url = encodeURI(url) //---->That's the new line we have added
This is perfect also. But here you would get benefit for local application only. To get advantage in all applications, try to find global solution like setting character set or encoding directly in JS or telling Ajax engine to encode every URL before submitting to server etc. > > xmlHttp.onreadystatechange=stateChanged > xmlHttp.open("GET",url,true) > xmlHttp.send(null) > > I can't say if this is the right way to deal with that thing, but it works > fine.Anyway Anirudh thanks for the reply.I think you were also on the right > way :))) > -- > View this message in context: > http://www.nabble.com/PHP-and-AJAX-tf3562272.html#a9970283 Sent from the > Php - Internationalization (i18n) mailing list archive at Nabble.com. Anirudh Zala -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php