Thank you Ognjen,
You are correct about your statement.
I also suceeded without any problem to do the excaping for
</codeDescription> -> </codeDescription>
As I am developping in a English (Western country) environment with eclipse
I cannot display the word *Основное *from *
Основное* in the Eclipse
console (I mean when I do a System.out.println....).
This is due in my understanding because I am working with Latin encoding and
I should change my environment (of the Console output) to another encoding
thing that I do not want to do.
May I ask you which is your Environment setting in your machine (Russian
KOI)?
Thank you Ognjen.
Rgds,
/JF
On Thu, Nov 13, 2008 at 3:17 PM, Ognjen Blagojevic <[EMAIL PROTECTED]>wrote:
> José Ferreiro wrote:
>
>> <Item>Основное
>> </codeDescription></errorCodeItem></Item>
>>
>> Does anyone has an idea how I can get the encoded word/phrase back to
>> cyrillic in the client?
>> I assume that it is UTF-8 encoded...
>>
>
> Actually, this is XML encoding. You can use apache commons class
> StringEscapeUtils[1] to work with it.
>
> For the given string,
>
> System.out.println(StringEscapeUtils.unescapeXml("Основное
>
> </codeDescription></errorCodeItem>"));
>
> prints
>
> Основное </codeDescription></errorCodeItem>
>
> (Osnovnoe in cyrillic).
>
>
> -Ognjen
>
> [1]
>
> http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
José Ferreiro
MSc in Communication Systems, EPFL.
"Think little goals and expect little achievements. Think big goals and win
big success." David Joseph Schwartz