02/28/2005
 

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

Method Summary
static String accountForCharset(javax.servlet.http.HttpServletRequest req, String oldValue)
           
static String getCharacterEncoding()
          Returns the default character encoding for the system based on the value of the portal.character.encoding.default system property
static String getRequestCharacterEncoding(javax.servlet.http.HttpServletRequest req)
           
static String revertToCharset(javax.servlet.http.HttpServletRequest req, String oldValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)

02/28/2005
 

Copyright and Trademark Notices