Hi all! I am quite confused about this whole thing about how to use different character encodings in the XML document. I mean, you can specify UTF-8 or UTF-16 for example, but how do I know what encoding the input to the document is. I have a Java test program creating documents with the default character encoding, but the problem is I get a parsing error everytime a swedish character occurs inside the text. I would like to handle all types of characters put into the document, so unicode (UTF-16?) would be nice to use. I have three questions:
1. How do I create a XML document that have unicode as the encoding? I create the documents from scratch, so I must use the programming interface in some way to do this. 2. How do I know the text inserted into the document will be unicode. As far as I know there is no way in Java to say this String is encoded in unicode. 3. Is this the common solution to this problem, or am I missing something here? Thanks in advance! /Mats Andersson --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
