This content has been marked as final.
Show 1 reply
-
1. Re: UnsupportedEncodingException when converting a String to
veniamin Jun 22, 2006 1:18 AM (in response to membrillo)Try your code on JVM your JBoss runs on. Also, run this code to determine what encodings you have at all:
class Test00 { public static final void main (String args[]) { java.util.Map charsets = java.nio.charset.Charset.availableCharsets(); java.nio.charset.Charset cs = null; java.util.Iterator oiter = charsets.entrySet().iterator(), iiter = null; int i; while (oiter.hasNext()) { cs = (java.nio.charset.Charset) ((java.util.Map.Entry) oiter.next()).getValue(); System.out.print(cs.name()); iiter = cs.aliases().iterator(); i = 0; while (iiter.hasNext()) { System.out.print(i == 0 ? ": " : ", "); System.out.print((String) iiter.next()); i++; } System.out.println(); } } }