>> It's because BXMLSerializer assumes that BXML files are encoded in UTF-8. >> There is currently no way to specify an alternate encoding. > > I would categorize this as a bug. XML deserializers must respect the > encoding, otherwise we end up with a mess ;-) especially when we have > mixed namespaces and multiple intermixed consumers... > > Doesn't the XML deserializer you use just work correctly if you pass > an InputStream instead of a Reader??
Actually, I think a Reader would work but we don't currently expose that API. We use javax.xml.stream.XMLInputFactory#createXMLStreamReader() to process the XML, which takes an InputStream as an argument. What we should probably do is allow the caller to specify the character set to read (there is another version of createXMLStreamReader() that takes both an InputStream and a java.nio.charset.Charset). G
