Last change
on this file since 68 was
68,
checked in by cbipsl, 14 years ago
|
commit v1 eccad
|
-
Property svn:executable set to
*
|
File size:
398 bytes
|
Line | |
---|
1 | package org.medias.eccad.helpers; |
---|
2 | |
---|
3 | import java.io.UnsupportedEncodingException; |
---|
4 | |
---|
5 | public 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) { } |
---|
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.