logo       

UTF-8 and live updates: msg#00173

lang.smalltalk.squeak.seaside

Subject: UTF-8 and live updates

Hi all!

To support UTF-8 characters in GET request JS code have to be
corrected, encodeURIComponent() have to be used instead of escape():

function addParameter(uri, key, value)
{
var separator = "?";
if (uri.indexOf("?") >= 0)
separator = "&";
return uri + separator + key + "=" + encodeURIComponent(value);
}


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise