There are three things you can to avoid problems with DBCS in XML data:
Include a deviceEncoding=utf-8
attribute in each element definition in your XSD file. See Supporting double-byte character set (DBCS) data.
In your XML files, avoid use of DBCS outside of the XML data itself and the related labels. In particular, do not use DBCS in element names.
In the HTML pages that refer to the XML data, specify UTF-8 as the character set in a Charset
META tag (see Specifying a character set with the Charset META tag) or in an HTTP header (see Specifying a character set with a Content-Type tag in the HTTP header.
In addition, if you are using ISO-8859-1 encoded XML data, do not include the deviceEncoding
attribute in the XSD file. Instead use ISO-8859-1 encoding in the HTML that refers to the data. The HTML encoding must be
specified with META tags or with HTTP headers. HTML without encoding information will be processed by default as ISO-8859-1.
Send feedback about this page using email. | Copyright © 2008, iAnywhere Solutions, Inc. |