Unicode and newline characters in XML text send via Web Service
Krzysztof Fink-Finowicki <[email protected]> Tue, 28 Sep 2004 04:10:19 -0400
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hi,
I fill-in text in TEXTAREA tag on HTML page, then send its content via
content of XML element parameter sent through WebService function from
JavaScript.
On client side, I can read my text in debugger as:
<Text>=93Omr=E5de=94
=91hj=E4lp=92</Text>
(with literal newline).
On server side, transferred content of XML tag looks as:
<Text>???Omr??de???
???hj??lp???</Text>
(the newline character is displayed in Notepad as single square).
Server side text is then stored to database.
This effect causes:
- differences between client and server texts regarding newline characters;
- loss of national characters.
How and where should I set encoding parameters for Web Service
transmission to overcome these problems ?
Please help.
Krzysztof