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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -