Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes XML and Related Technologies and the fly likes [Castor] Encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "[Castor] Encoding "special" characters" Watch "[Castor] Encoding "special" characters" New topic

[Castor] Encoding "special" characters

Joop Knoop

Joined: Feb 24, 2005
Posts: 1

I�ve got a problem using castor. The problem is that �special� characters (like �, �, � etc.) are not processed like I expect them to be.

For example,
the incoming xml message contains a string like ����r�n�. Directly after the unmarshalling has taken place the value of the string is changed to �������R��N� and is stored and displayed this way.

The xml messages use the UTF-8 encoding. I�m using castor version with the latest xercesImpl.jar.

Any suggestions on what goes wrong or how to solve this problem?

Thanks in advance,
I agree. Here's the link:
subject: [Castor] Encoding "special" characters
It's not a secret anymore!