Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gisgraphy.helper
Class EncodingHelper

    java.lang.Object
      com.gisgraphy.helper.EncodingHelper

    public class EncodingHelper

extends java.lang.Object

Encoding helper

Author:
  David Masclet

Field Summary
`protected static org.slf4j.Logger` | `logger`

Constructor Summary
`EncodingHelper()`

Method Summary
`static void` | `setJVMEncodingToUTF8()` Set the file.encoding and sun.jnu.encoding to UTF-8
`static java.lang.String` | `toUTF8(java.lang.String string)` useful for windows only, this method is a workaround for encoding problems on Windows.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### logger

    protected static final org.slf4j.Logger logger

Constructor Detail

### EncodingHelper

    public EncodingHelper()

Method Detail

### toUTF8

    public static java.lang.String toUTF8(java.lang.String string)

  useful for windows only, this method is a workaround for encoding problems on Windows.
  any suggestion are welcomed

  Returns:
    the string in utf-8

### setJVMEncodingToUTF8

    public static void setJVMEncodingToUTF8()

  Set the file.encoding and sun.jnu.encoding to UTF-8

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009. All Rights Reserved.