-
XML encoding - handling foreign lang chars
Still having this problem.
BinaryRead does not work since cannot convert what is received
to something that loadXML will swallow. I tried converting the
byte array that comes from binaryread using this:
ByteCount = UBound(inByteArray)
TempString = Space(ByteCount + 1)
For i = 0 To ByteCount
Mid(TempString, i + 1, 1) = Chr(inByteArray(i))
Next
Somewhere along the way the Chr aborts on some bad value.
The real problem:
My client application prompts the user for their full name. Since
the user could be in France, for instance, the name could have non-US
characters.
The name is wrapped in XML and sent to an ASP on my server where I:
set xmldoc = createobject("msxml2.domdocument.3.0") 'uses msxml3.dll
xmldoc.load(Request)
But this gives the error:
An invalid character was found in the text context.
I tried specifying a processing instruction on the client to set
the encoding to "UTF-8" as the XML doc is built. Same error.
Then I tried "UTF-16" and get the error:
Switch from current encoding to specified encoding not supported.
So, how do I handle these foreign language characters???
Please email me: l_kvitek@audiblemagic.com
Thanx!
Note: I also tried ISO-8859-1 and Windows-1252 encoding, no luck.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks