| java.lang.Object org.pnuts.servlet.ServletEncoding
ServletEncoding | class ServletEncoding (Code) | | |
getDefaultInputEncoding | public static String getDefaultInputEncoding(Context context)(Code) | | Gets the default encoding for input.
This function returns request.getCharacterEncoding() value if it is non-null,
otherwise response.getCharacterEncoding() value, if it is non-null.
If both are null, it returns "UTF8".
Parameters: context - the context the encoding name |
getDefaultOutputEncoding | public static String getDefaultOutputEncoding(Context context)(Code) | | Gets the default encoding for output.
This function returns response.getCharacterEncoding() if it is non-null, otherwise "UTF8".
Parameters: context - the context the encoding name |
|
|