I am wondering how encoding works in JaxME(and in general) Say I have a header bytes. Now, I happen to know those bytes are encoded in utf-16 and so I can parse the header to the following.....
<?xml version="1.0" encoding="utf-16"?> 1. Isn't this a catch 22? I can only read this into a string if I know ahead of time that it is utf-16(in which case, specifying encoding attribute is useless)? 2. OR is the header always in ascii and then when I get to the encoding, I know to read in everything else as utf-16? 3. If this is the case though, what happens in the xml documents that are in files. They all have this catch-22 problem. I mean, i can open the file in ascii and then save it as utf-8 or utf-16. I can't save the header as ascii and the rest as utf-16. How does encoding work with JaxME? thanks, dean --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
