473,662 Members | 2,375 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 1565
Nicolas <ni*********@cs tb.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.co m>
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.list Attibutes();
Console.Write(s t);

it always gives me the same result. I try to convert this string with
System.Text.Enc oding 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.list Attibutes();
Console.Write(s t);

it always gives me the same result. I try to convert this string with
System.Text.Enc oding 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.co m>
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 responseEncodin g property in the globalization element
of your web.config file?

Richard.

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
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.list Attibutes();
Console.Write(s t);

it always gives me the same result. I try to convert this string with
System.Text.Enc oding 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.co m>
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
1764
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 role in Prothon. (I'm not going to say what that role is here to avoid starting another 300 message thread like I did last time :-) If you are curious you can go to the Prothon mailing lists at http://prothon.org).
1
1379
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 UTF-8 and thought this would be enough to present the information from the different sources correctly. Russian and English are OK but German and French produse peculiar chars. Set the codepage to 1252 and Russian goes awry. Has anyone some pointers...
0
1614
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 announced that XML Conference and Exposition 2004 will feature more than 40 international speakers and exhibitors showcasing XML technologies and solutions from around the globe. XML 2004 is slated for November 15-19 at the Marriott Wardman Park...
14
8326
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
1693
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 American patent 4919933, the Taiwanese patent 37414, the Japanese patent 2733523 and a Korean patent 044435 through The Korean Jungang International Patent Law Office(Address : 5th Floor, Jae Insurance Bld, #80, Susong-Dong, Jongro-Gu, Seoul, the...
0
1443
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 announced that XML Conference and Exposition 2004 will feature more than 40 international speakers and exhibitors showcasing XML technologies and solutions from around the globe. XML 2004 is slated for November 15-19 at the Marriott Wardman Park...
5
3073
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 open the reports and manually change the datasouce to the production database. Is there a way to set the datasouce on the webserviced reports dynamically? (A datasource property or something?) cant seem to find anything. Thanks!
3
10907
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 install, the web service method will not accept the UK date format, erroring with a System.Argument exception, but would take US formatted dates.
2
2874
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 get around what seems like a bug in the dotnet framework? Scott Emick
0
8856
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8762
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1747
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.