net.sf.mmapps.commons.util
Class EncodingUtil

java.lang.Object
  extended by net.sf.mmapps.commons.util.EncodingUtil

public class EncodingUtil
extends java.lang.Object


Method Summary
 int compareAccentuatedCharacters(java.lang.String s1, java.lang.String s2, java.util.Locale locale)
           
static java.lang.String convertFromUTF8(java.lang.String s)
          convert from UTF-8 encoded HTML-Pages -> internal Java String Format
static java.lang.String convertNonAscii(java.lang.String s)
           
static java.lang.String convertToUTF8(java.lang.String s)
          convert from internal Java String Format -> UTF-8 encoded HTML/JSP-Pages
 boolean equalAccentuatedCharacters(java.lang.String s1, java.lang.String s2, java.util.Locale locale)
           
static java.lang.String windows1252ToISO(java.lang.String windows1252encoded)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertNonAscii

public static java.lang.String convertNonAscii(java.lang.String s)

windows1252ToISO

public static java.lang.String windows1252ToISO(java.lang.String windows1252encoded)

convertFromUTF8

public static java.lang.String convertFromUTF8(java.lang.String s)
convert from UTF-8 encoded HTML-Pages -> internal Java String Format

Parameters:
s - string to conver
Returns:
converted string

convertToUTF8

public static java.lang.String convertToUTF8(java.lang.String s)
convert from internal Java String Format -> UTF-8 encoded HTML/JSP-Pages

Parameters:
s - string to conver
Returns:
converted string

compareAccentuatedCharacters

public int compareAccentuatedCharacters(java.lang.String s1,
                                        java.lang.String s2,
                                        java.util.Locale locale)

equalAccentuatedCharacters

public boolean equalAccentuatedCharacters(java.lang.String s1,
                                          java.lang.String s2,
                                          java.util.Locale locale)


Copyright © 2003-2006 mmapps. All Rights Reserved.