Next in thread →
Next in month →
Re: [xml-dev] XML UTF-16 encoding problem
[Raj] > I am facing a problem with XML UTF 16 encoding and need help on this. > When I use UTF 16 encoding with MSXML Parser 3.0 and when I use the function > loadXML to load the XML string into the XML DOMDocument it returns False. > i.e it doesnot load the document. Can you suggest me a solution to this > problem ASAP. > > UTF-16 or UCS-2 is a requirement since we are using Chinise, Japanese and > Korean support for the application for which we have to give unicode > support. > Most likely you are trying to feed it a document that is not in UTF-16 but erroneously declared to be (or perhaps the inverse of this). MSXML can work with UFT-16 just fine. The Microsoft processor uses UTF-16 internally, as I understand it. You have to get the encoding declaration to be the same as the actual encoding (if there is no encoding declaration, the parser will take it to be in UFT-8 unless there is a byte order mark for UTF-16). Anyway, "unicode support" would include UTF-8. Cheers, Tom P
Next in thread →
Next in month →