473,508 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservice and international chars

Hello!

I call using C# a webservice (UTF8 encoded) that return a list of
product. I get the requested objets. So far so good. But, in those
objects in all String attributes I get ?? instead of chars with
accents. I tried to call the same webservice in Java and Delphi and I
get the right chars. What's wrong with C# ?

Thanks
Nicolas
Nov 16 '05 #1
5 1557
Nicolas <ni*********@cstb.fr> wrote:
I call using C# a webservice (UTF8 encoded) that return a list of
product. I get the requested objets. So far so good. But, in those
objects in all String attributes I get ?? instead of chars with
accents. I tried to call the same webservice in Java and Delphi and I
get the right chars. What's wrong with C# ?


How are you trying to display the characters?

See http://www.pobox.com/~skeet/csharp/d...ngunicode.html for
general advice about sorting out this kind of problem.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
Hi Jon,
How are you trying to display the characters?


i try to display it into console, labels, datagrids ... well, everywhere
i can!

I saw your page, and try with what you explain.
The code for '?' is 003f ... it is correct (for '?'), but where are my
accents ?

Here is my code :

string st = webservice.listAttibutes();
Console.Write(st);

it always gives me the same result. I try to convert this string with
System.Text.Encoding tools, but nothing appens.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Nicolas Pierot <ni************@cstb.fr> wrote:
How are you trying to display the characters?
i try to display it into console, labels, datagrids ... well, everywhere
i can!

I saw your page, and try with what you explain.
The code for '?' is 003f ... it is correct (for '?'), but where are my
accents ?


Right, so by the time the string comes back to you it really *is* full
of question marks.
Here is my code :

string st = webservice.listAttibutes();
Console.Write(st);

it always gives me the same result. I try to convert this string with
System.Text.Encoding tools, but nothing appens.


Hmm. I can't say I know much about webservices themselves - have you
had a look at the network traffic to check that the data really is
coming back?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #4
Nicolas,

Have you changed the responseEncoding property in the globalization element
of your web.config file?

Richard.

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Nicolas Pierot <ni************@cstb.fr> wrote:
How are you trying to display the characters?


i try to display it into console, labels, datagrids ... well, everywhere
i can!

I saw your page, and try with what you explain.
The code for '?' is 003f ... it is correct (for '?'), but where are my
accents ?


Right, so by the time the string comes back to you it really *is* full
of question marks.
Here is my code :

string st = webservice.listAttibutes();
Console.Write(st);

it always gives me the same result. I try to convert this string with
System.Text.Encoding tools, but nothing appens.


Hmm. I can't say I know much about webservices themselves - have you
had a look at the network traffic to check that the data really is
coming back?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #5
Richard

the web.config is used when you run som webservice, isn't it?

This is not my webservice, i just use it and get the response.

Nicolas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
1744
by: Mark Hahn | last post by:
Can users with international keyboards tell me if they have problems typing the left-quote ( ` ) character? It isn't used much in Python but we are thinking of giving it a slightly more important...
1
1372
by: Frank Bridge | last post by:
I hope somone can offer some advice. I have built a database accepting information through ASP from clients in UK, Germany France and Russia. I set the ASP codepage to 65001 and the charset to...
0
1596
by: MarionEll | last post by:
XML 2004 Shows International Side to XML Alexandria, Va. - Oct. XX, 2004 - IDEAlliance, a leading industry association dedicated to fostering XML and other information technology standards, today...
14
8295
by: nagual | last post by:
Can anyone please help me with a regular expression to test for Valid International Email Addresses? Also, which version of javascript (1.2 ?) is needed for same? Thanks. Regards.
0
1684
by: Yeongja_Choi | last post by:
How Dare Could America Industrial Property Office Be In Conspiracy With Jungang International Patent Office To Make An Extravagant International Crime ? Currently a Korean party now holds the...
0
1436
by: MarionEll | last post by:
XML 2004 Shows International Side to XML Alexandria, Va. - Oct. XX, 2004 - IDEAlliance, a leading industry association dedicated to fostering XML and other information technology standards, today...
5
3063
by: Ron | last post by:
I have a bunch of Crystal Reports (v9) published as WebServices and use a ReportViewer to display the reports on the ASPNET page. Everytime we move the reports from dev to production we have to...
3
10893
by: Rich Robinson | last post by:
Hi, I have a web service method which takes a DateTime type as a parameter. The service is UK based, and the dates are passed in to the service in the UK format dd/MM/yyyy. On a recent...
2
2860
by: Scott Emick | last post by:
I am still having issues with getting Root Element Missing instead of the actual error that the webservice call is supposed to be returning. I'm using VB .Net 2003. Has anyone else been able to...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.