On 20/06/12 10:12, rajneesh sharma wrote:
I have two problems related to control characters handling in POI.
1. control characters replaced by '?' , ideally I want to show control
characters.
Are you sure they're being turned into question marks? That's often what
you get if you try to display a character that your current terminal
encoding + font doesn't support. Try checking in a debugger, or turning
the string into a char array and casting each char to an int to see what
codepoint it is
1. Excel internally uses OOXML and XML does not support control characters.
2. To overcome this XML limitation Excel escapes the control character.
This doesn't sound excel specific, using entities and escapes is pretty
standard with xml processing for characters not supported.
XMLBeans should be decoding any characters that get xml escaped/encoded,
so that you get a real character back. Are you sure you're not seeing this?
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]