Add new languages in oxygen-xercesImpl jar
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 168
- Joined: Fri Jan 20, 2017 1:11 pm
Add new languages in oxygen-xercesImpl jar
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
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
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
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
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service