Byte order mark removal in xml files using Java IO -


the byte order mark first 3 bytes in xml file. how remove byte order mark xml file programmatically? want discard it.

rather removing it, use special reader reacts bom (and uses proper encoding, based on read bom): copied elsewhere (see note inside) open-sourced in android-menu-navigator project:

http://code.google.com/p/android-menu-navigator/source/browse/src/pl/polidea/navigator/unicodereader.java

you can use reader anyway read content of xml , write elsewhere, removing bom.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -