DIME attachments break double-byte characters using WSE 1.0 SP1

V

Vaylor Trucks

Using the .NET framework and WSE 1.0 SP1, I have built a web service
which receives data from a web service client and saves it to disk in a
text file, and it works with no problem. However, when I modify the web
service to accept an attachment and save it to disk as well (resulting
in 2 files saved - txt file and attachment) then any special characters
in the text file (such as the N~ combination used in Spanish) appear as
2 question marks "??".

I have traced the HTTP traffic and see no difference in the datastream
between the DIME and non-DIME versions of the web service call, with the
obvious exception of the data added by the attachment.

Is this fixed with WSE 2.0? If not, any clue as to why this is
happening? I can provide source if necessary.
 
D

Dan Rogers

Hi Vaylor,


How are you creating the text file? It sounds like an encoding problem
that would happen if you saved as ASCII rather than using a unicode or
UTF-8 encoding. If the XML coming in has one encoding and you write it out
without accounting for an encoding difference, then the observed behaviors
are expectable.

I hope this helps

Dan Rogers
Microsoft Corporation

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top