source: ether_eccad/trunk/ECCAD_INTERFACE/WEB-INF/src/org/medias/eccad/helpers/CharactereHelper.java

Last change on this file was 70, checked in by cbipsl, 14 years ago

maj eccad V3.2

  • Property svn:executable set to *
File size: 418 bytes
Line 
1package org.medias.eccad.helpers;
2
3import java.io.UnsupportedEncodingException;
4
5public class CharactereHelper {
6        public static String getEncodage(String valeur, String format) {
7                byte[] temp = null;
8                String retour = null;
9               
10                try {
11                         temp = valeur.getBytes(format);
12                } catch (UnsupportedEncodingException e) {e.printStackTrace();  }
13               
14                if (temp != null)
15                        retour = new String(temp); 
16               
17                return retour;
18        }
19}
Note: See TracBrowser for help on using the repository browser.