Hello,
We use oxygen-18.1.0.0.jar, and we need to add the Portuguese, Spanish and Chinese language to our application.
That is why we updated the jar oxygen-xercesImpl in order to have the xml errors messages in this new languages.
Spanish and Portuguese works fine but not Chinese.
The Chinese characters are replaced by special characters.
For exemple, when we want to show the message :
cvc-complex-type.2.4.a: Invalid content was found starting with element 'XXX'. One of '{XXX}' is expected.
It shows
cvc-complex-type.2.4.a: ä»å
ç´ 'XXX' å¼å§ï¼æ¾å°æ æå
容ãå
¶ä¸ä¸ä¸ª '{XXX}' æ¯é¢æçã
Instead of
cvc-complex-type.2.4.a: 从元素 'XXX' 开始,找到无效内容。其中一个 '{XXX}' 是预期的。
The Chinese properties file is encoded in UTF-8.
Can you tell me if there is a solution to show Chines characters and not special characters?
Thank you.
Regards,
Isabelle
Add new languages in oxygen-xercesImpl jar
Re: Add new languages in oxygen-xercesImpl jar
Hi Isabelle,
About this remark:
All characters which cannot be encoded with ISO-8859-1 need to be escaped. There are special properties file editors available for download. Also Oxygen 19.1 can automatically escape characters when saving a .properties file.
Regards,
Radu
About this remark:
This is wrong, properties files have a fixed encoding of ISO-8859-1. In the main Oxygen JAR there is an "Messages_ja_JP.properties", you can look at that to see how it looks like.The Chinese properties file is encoded in UTF-8.
All characters which cannot be encoded with ISO-8859-1 need to be escaped. There are special properties file editors available for download. Also Oxygen 19.1 can automatically escape characters when saving a .properties file.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Add new languages in oxygen-xercesImpl jar
Hello Radu,
We have fixed the encoding of the file and escaped characters and it works fine now.
Thank you for your help.
Regards,
Isabelle
We have fixed the encoding of the file and escaped characters and it works fine now.
Thank you for your help.
Regards,
Isabelle