Prevent Oxygen software from automatically escaping for Chinese character

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Xiaofei
Posts: 1
Joined: Tue Mar 26, 2019 11:20 am

Prevent Oxygen software from automatically escaping for Chinese character

Post by Xiaofei » Tue Mar 26, 2019 11:31 am

Hi,All
When insert a image into Oxygen, the software transfer the Chinese character in href attribute to unicode, how can I stop this automatic behavior?

Radu
Posts: 7212
Joined: Fri Jul 09, 2004 5:18 pm

Re: Prevent Oxygen software from automatically escaping for Chinese character

Post by Radu » Tue Mar 26, 2019 4:16 pm

Hi,

As you also contacted us via email, I will add on the forum thread the answer I gave you via email.

That escaped encoding Oxygen automatically applies on the various resource references is perfectly equivalent to the original file naming. So although it looks ugly it should work.

The DITA 1.3 specification states something like:

https://www.oxygenxml.com/dita/1.3/spec ... ibute.html
The value of a DITA @href attribute must be a valid URI reference [RFC 3986]
and the specification:

https://www.ietf.org/rfc/rfc3986.txt

states something like:
In local or regional contexts and with improving technology, users
might benefit from being able to use a wider range of characters;
such use is not defined by this specification. Percent-encoded
octets (Section 2.1) may be used within a URI to represent characters
outside the range of the US-ASCII coded character set
I'm not 100% sure if Oxygen is doing the right thing in this instance, I will register an internal issue to look more into this.
In the meantime if you want I can try to build for you an Oxygen plugin which when such a reference is inserted in the editing area will have the reference characters preserved without that extra escaping.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Radu
Posts: 7212
Joined: Fri Jul 09, 2004 5:18 pm

Re: Prevent Oxygen software from automatically escaping for Chinese character

Post by Radu » Wed Feb 19, 2020 9:07 am

Hi,

As an update on this thread, in Oxygen 22 we added in the Preferences->"Encoding" page a new checkbox called "Encode non-ASCII characters in URL paths" which should insert links to files with non-ASCII file names which are easier to read in Chinese.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply