IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New How can I add support for UTF-16 encoding to Winders...
English, that is, without installing a foreign language version of Winders?

I need to process data that was encoded using UTF-16 through M$ XML parser v3sp1. Per M$ XML parser documentation, it will support whatever languages IE supports. But I can't seem to find a way to add UTF-16 support to a box.

Any help would be greatly appreciated.

Brian Bronson
New Should be there?
At least, that's what this [link|http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmconcharacterencodingxmlandmsxml.asp|MSDN entry] implies.

New Wonderful contradictory MSDN
Thanks for the link.

I got my information from here:

[link|http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q275883|Knowledge Base Article]

"MSXML supports all encodings that are supported by Microsoft Internet Explorer. Internet Explorer's support depends on which language packs are installed on the computer"

It then goes on to say MSXML has native support for UTF-16.

The error we are receiving is this:

"System does not support the specified encoding. Line 1, Position 40
<?xml version="1.0" encoding="UTF-16"?>"

We traced the process and verified it's being generated on our web server, which is a W2K Server and is running MSXML 3.

So, according to one MS article (your link) I shouldn't see this error. According to another article (my link) maybe I should see it; maybe I shouldn't.

I'm confused.

Brian Bronson
New Try these
I tried a query on "UTF-16" on my copy of the MS technet knowledgebase. These links look related to your problem.

[link|http://support.microsoft.com/default.aspx?scid=kb;EN-US;q303612|q303612]

[link|http://support.microsoft.com/default.aspx?scid=kb;EN-US;q247708|q247708]
When I visit the aquarium, the same thought keeps running through my mind;
Leemmmooonnn, Buuttteerrr, MMMmmmmmm good!
New I had seen both of those, don't think they apply
Thanks for the help.

re: Q247708. We're on MSXML 3.0, so this should not apply. Besides, the first solution they offer is to convert the xml to UTF-16!!!

re: Q303612. The data is coming from a SQL Server 7 database through the IIS web server to the browser. The error is happening before it gets to the browser, so this shouldn't apply. And if the path was from the browser to the server, it wouldn't have been UTF-16 as IE would have submitted it as UTF-8. Although it does point out potential future issues (no matter what unicode characters you need to enter through IE, they better exist in UTF-8).

I had also checked out the link from Q303612 to Q232580 (UTF-8 and SQL Server). I passed this on to the developers as another potential issue. They haven't responded yet.

My head hurts (and it's not for any fun reasons!)

Brian Bronson
New Might this be related?
The fog is pretty dense out there regarding XML, XSL and character encoding. But maybe [link|http://groups.google.com/groups?hl=en&threadm=OJ7Za1ioAHA.1320%40tkmsftngp04&rnum=20&prev=/groups%3Fq%3DSystem%2Bdoes%2Bnot%2Bsupport%2Bthe%2Bspecified%2Bencoding%2BUTF-16%26hl%3Den%26start%3D10%26sa%3DN|this] is related to what is happening on your end. After all, the 40th character is past the closing ">"

If I read the ng's right, the 'encoding="UTF-16"' bit implies the entire XML document is UTF-16 encoded. If that's not the case, the parser will not like it.
New Thought so, but alas, no
Looked long and hard at it with the developer, and for the first few minutes thought that was the fix. But it wasn't.

We did some more digging and testing. Now I don't even think the error message we are receiving is accurate. The error is happening when we load the xml document into the xml parser via the asp code. That's failing and ultimately we receive the utf-16 not supported message. But, when we manually load a known utf-16 document, that portion works.

So something is preventing the problem xml document from being loaded. The entirely-MS system is telling is it's because utf-16 is not supported, but that's not the real reason.

I have to put this down a few days because we have a release coming out.

Thanks for the help,
Brian Bronson
     How can I add support for UTF-16 encoding to Winders... - (bbronson) - (6)
         Should be there? - (scoenye) - (5)
             Wonderful contradictory MSDN - (bbronson) - (4)
                 Try these - (Silverlock) - (1)
                     I had seen both of those, don't think they apply - (bbronson)
                 Might this be related? - (scoenye) - (1)
                     Thought so, but alas, no - (bbronson)

There might be poisonous gnomes hiding behind the furniture and I can't take that chance.
46 ms