Published on 2006-11-23 19:13:26

Another encoding issue for AJAX libraries after fixing something similar last year with AjaxAC and middle eastern encoding, yesterday I noticed that prototype have similar issue. The problem with prototype is the usage UTF-8 as default encoding even if your page have a different encoding, this will make the data exchanged between client and server incorrect, and in our cases the SQL executed in server side return no results.

I grabbed today the latest prototype 1.5.0_rc1 included with script.aculo.us, but be sure to get the latest one from their website because the script have changed and version remain the same. In the latest version you can notice a new parameters which have been added to the options "encoding" :

Read More


Related Entries

Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved