[jboss-user] [JBossWS] - how to deal with unicode
thanatosis
do-not-reply at jboss.com
Tue May 1 22:27:27 EDT 2007
I wrote a little library that can do simple translations, for example, i can select an operation such as english -> russian. Then if i send my library the string "greetings" it will return to me "??????" (privet) in cyrillic. Since java stores it's strings in unicode, this is all very easy, so long as the result string gets output with something like this :
PrintStream out = new PrintStream(System.out, true, "UTF-8");
out.print(results);
I'm trying to wrap a POJO web service around it, and it works fine with latin chars, but with things like cyrillic, something in the soap stack is mangling up my result string. I don't know what kind of output encoding the xml writer is using, but the string it generates is useless.
is it possible to tell the soap stack to use UTF-8? I'm not sure what can be done to solve my problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042272#4042272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042272
More information about the jboss-user
mailing list