File Format Conversion

Are you missing a feature? Request it's implementation here.
spryspectre
Posts: 3
Joined: Thu Nov 12, 2009 6:47 pm

File Format Conversion

Post by spryspectre » Mon Nov 23, 2009 8:53 pm

An option to convert a document from a given file encoding to another would be extremely handy. I want to be able to open a document which is stored on disk as an iso-8859 encoding, and save it in a utf-8 encoding.

Or possibly, auto-sense the save format if the <?xml encoding="utf-8"?> attribute is present...

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: File Format Conversion

Post by sorin_ristache » Tue Nov 24, 2009 10:35 am

Hello,

Oxygen saves the document in the encoding that is specified at the start. For example:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
If your document specifies encoding="ISO-8859-3" Oxygen reads it in the ISO-8859-3 encoding and if you edit the document in Oxygen and change the declaration to encoding="UTF-8" Oxygen saves it in the UTF-8 encoding.


Regards,
Sorin

jpmoularde
Posts: 21
Joined: Wed Dec 16, 2009 2:53 pm

Re: File Format Conversion

Post by jpmoularde » Wed Dec 16, 2009 4:20 pm

Apparently, the only possibility to change file encoding resides in the "Encoding of non XML document" feature.
I had some month ago to produce a "plain document" in UTF-8, and I set up that parameter to UTF-8.
A few week later I had to make change in a php file: the result was that the file was automatically encoded in UTF-8.
I tested the file and everything was apparently OK.
A month later a user complained about a bug in the php application. It took me several hours to realize that it was a side effect of the change of encoding.
Would it be feasible to add the following feature;
attach an encoding method to every type of file, base on the extension?
Thanks

iulian_velea
Posts: 63
Joined: Fri Dec 12, 2003 6:34 pm
Contact:

Re: File Format Conversion

Post by iulian_velea » Wed Dec 16, 2009 5:25 pm

Hello,

This is an interesting request and I added an entry related to it on our issue tracker.
We will let you know about its resolution.

Thank you,
Iulian.

jpmoularde
Posts: 21
Joined: Wed Dec 16, 2009 2:53 pm

Re: File Format Conversion

Post by jpmoularde » Thu Nov 04, 2010 12:29 pm

iulian_velea wrote:This is an interesting request and I added an entry related to it on our issue tracker.
We will let you know about its resolution.
Julian
Your answer dates about one year ago, and I have not seen any news about this topic. Is there a solution that I'm not aware of?
Alternatively (or in addition to) that solution, would it be possible to include in the configuration parameter that a new type of file has to be supported as UTF-8 encoded?
Kind regards
JP

jpmoularde
Posts: 21
Joined: Wed Dec 16, 2009 2:53 pm

Re: File Format Conversion

Post by jpmoularde » Thu Nov 04, 2010 12:37 pm

Please ignore this paragraph in my previous post which doesn't make sense!
jpmoularde wrote:Alternatively (or in addition to) that solution, would it be possible to include in the configuration parameter that a new type of file has to be supported as UTF-8 encoded?
JP

adrian
Posts: 2659
Joined: Tue May 17, 2005 4:01 pm

Re: File Format Conversion

Post by adrian » Thu Nov 04, 2010 1:26 pm

Hello,

Right now this feature is scheduled for v13. But I can't guarantee it won't be pushed back.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply