Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi.
i have a problem with a Web Service

Right now, i have a Web Service developed in .Net.
And my client has a System Develop in Delphi.... the problem is this.

when the client send me a Data with "ñ" or "´" or any special character this convert into a "??".

I Search in google, about encoding and i made changes in my Web.config
but problem still.

here are the changes that i made in my web config...
<?xml version="1.0" encoding="utf-8"?>

and this one too
<system.web>
  <globalization enableClientBasedCulture="false" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"
    responseHeaderEncoding="utf-8"  enableBestFitResponseEncoding="true" culture="es-MX" uiCulture="es-MX"/>


and is not working.

all of this is in mexico
my server is Windows server 2003
Regional Settings English (installed 60001 UTF-8)

There's a way to fix this? or how can i know if the problem is in the client side or my side.
Thanks in advance
Posted

1 solution

Good afternoon,
after a few days, which was able to find the error.
the error was not in my web service, was in the customer's application.
check my web.config and everything perfect. when I generate test data delivery .. all tests were successful .. but when the client sent the same data, the error is displayed.
The correction was:
In the client project. changed to "ISO-XXXXX" to "UTF-8"
and problem was fixed.
Another case is the other way around .. the problem is of the two, both client. as the web service.
As a recommendation, always handle encoding: UTF-8
Greetings and Excellent afternoon
 
Share this answer
 
Comments
Luis Fernando Forero Guzman 3-Apr-13 10:55am    
I'm facing the same problem, I'm a .Net user And I´m consuming a web service implemented in Delphi. May be the person who id developing the web service doesn’t know how to change the encode from "ISO-XXXXX" to "UTF-8", could you please tell me how to do this? We are using Delphi 2007
Rene Bustos 22-Apr-13 10:56am    
Hi Luis..
it appear that the problem isn't in your .NEt App, Just check in your Web.config the encoding
If this is Set to UTF-8, if yes, then the problem is in the client side..
You Only have to notify to the developer to check the settings in the Web service (Delphi).
if After the changes ..still have the same problem, try to changeyour settings (Web.config) to ISO, and restart your IIS.
Regards from Mexico.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900