UTF-8 and live updates

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

UTF-8 and live updates

Ilya S. Slyzhnyak
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);
}


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside