Page 1 of 1
File Format Conversion
Posted: Mon Nov 23, 2009 8:53 pm
by spryspectre
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...
Re: File Format Conversion
Posted: Tue Nov 24, 2009 10:35 am
by sorin_ristache
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
Re: File Format Conversion
Posted: Wed Dec 16, 2009 4:20 pm
by jpmoularde
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
Re: File Format Conversion
Posted: Wed Dec 16, 2009 5:25 pm
by iulian_velea
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.
Re: File Format Conversion
Posted: Thu Nov 04, 2010 12:29 pm
by jpmoularde
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
Re: File Format Conversion
Posted: Thu Nov 04, 2010 12:37 pm
by jpmoularde
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
Re: File Format Conversion
Posted: Thu Nov 04, 2010 1:26 pm
by adrian
Hello,
Right now this feature is scheduled for v13. But I can't guarantee it won't be pushed back.
Regards,
Adrian