Locale-Sensitive Java Method
java.net.URLEncoder
public static String encode(String s)
public static String encode(String s, String enc)
Internationalization (I18n) Method Overview
The encode method translates a string into x-www-form-urlencoded format.
If the character encoding isn't passed in, the
platform's default character encoding is used, which may not give correct results. It is important to call the method
that takes an encoding parameter and to pass in the correct encoding.
For more information click
here.
Locale-Sensitive Java Methods
|