On 04/16/2013 03:58 AM, Walmir Torrente wrote:

I need to convert a XML File with Windows-1252 encoding to another
file with UTF-16BE through command line.


I'm sorry but there is no way to do this with our product, without *re-indenting* the XML file:

XXE_install_dir/bin/xmltool indent -encoding UTF-16BE -o out_UTF-16BE_xml in_Windows-1252_xml

Actual Linux example:
---
~$ /opt/xxe/bin/xmltool indent -encoding UTF-16BE -o foo.xml bar.xml

WARNING: Cannot determine which schema to use for validating "bar.xml".
---

More information in http://www.xmlmind.com/xmleditor/_distrib/doc/xmltool/indent_options.html



---
PS: the UTF-16BE encoding is *not* supported by most applications (Firefox, GNU Emacs, notepad, etc).



---
PS 2: If you just want to transcode XML files, changing the encoding but also the <?xml encoding="XXX"?> declaration (and may be adding a BOM), you'll be better served by a dedicated open source, free, command-line utility.

If there is no such utility then consider writing one in your favorite programming language (very, very simple).



--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to