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 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
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!
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
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
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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).
|
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...
|
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...
|
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.
|
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...
| |
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...
|
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!
|
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.
|
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
|
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...
|
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...
| |
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,...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |