org.zkoss.net
Interface URLEncoder


public interface URLEncoder

A plugin to allow developer to customize the encoding of URL.

By default, java.net.URLEncoder.encode(s, "UTF-8") is used. If it is not what you want, you can customize it by implementing this interface and specify it in the library property called org.zkoss.net.URLEncoder.

Since:
3.6.3
Author:
tomyeh

Method Summary
 java.lang.String encode(java.lang.String s)
          Translates a string into x-www-form-urlencoded format.
 

Method Detail

encode

java.lang.String encode(java.lang.String s)
Translates a string into x-www-form-urlencoded format.

Notice that Note: The World Wide Web Consortium Recommendation states that UTF-8 should be used. Not doing so may introduce incompatibilites.

Parameters:
s - the string to be translated


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo