Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web service XML serialisation problem

Status
Not open for further replies.

stevexff

Programmer
Mar 4, 2004
2,110
GB
I have a web service, accessed from an ASP page. Somewhere between calling the web service, and it being de-serialised at the WS end, any UTF-8 'wide' characters like £ get translated to '??'. These then get saved on the database (NVARCHAR columns, so Unicode should be OK).

However, if I store '£' on the database table manually, and then enquire on it using another method of the same web service, the '£' comes through unscathed, and displays correctly in the UI.

All the WSDL specifies utf-8, and web.config files have globalization entries for request and response encoding utf-8.

Has anyone seen anything like this, where serialisation works fine in one direction but not the another?
 
The best way to find these kinds of problems is to start at the source of the data, and trace your way forward to see where it's getting mangled. Time consuming, yes, but there's no magic way to say where it's happening. Expect to examine a lot of log files.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Cheers, Chip.

I'd already started down that track. I was hoping for a magic bullet...
 
You might try a binary bug search.
:)

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top