com.epicentric.common.website
Class CharacterEncodingUtils
java.lang.Object
|
+--com.epicentric.common.website.CharacterEncodingUtils
- public class CharacterEncodingUtils
- extends Object
Utility class for working with character encoding
on JSP pages
- Since:
- 4.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCharacterEncoding
public static String getCharacterEncoding()
- Returns the default character encoding for the system based on
the value of the
portal.character.encoding.default
system property
- Returns:
- the default character encoding string; defaults to
UTF8 if encoding specified in system property is
unrecognized by JVM
accountForCharset
public static String accountForCharset(javax.servlet.http.HttpServletRequest req,
String oldValue)
revertToCharset
public static String revertToCharset(javax.servlet.http.HttpServletRequest req,
String oldValue)
getRequestCharacterEncoding
public static String getRequestCharacterEncoding(javax.servlet.http.HttpServletRequest req)
Copyright and Trademark Notices