Page 1 of 1

Prevent Oxygen software from automatically escaping for Chinese character

Posted: Tue Mar 26, 2019 11:31 am
by Xiaofei
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?

Re: Prevent Oxygen software from automatically escaping for Chinese character

Posted: Tue Mar 26, 2019 4:16 pm
by Radu
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

Re: Prevent Oxygen software from automatically escaping for Chinese character

Posted: Wed Feb 19, 2020 9:07 am
by Radu
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