I have extended an asp page written by someone else with an AJAX lookup that gets a list of people from the database via another asp page and updates a dropdown without refreshing the page, this works great no problems.
Until, the list of people contains someone with a name in another language, German for instance has the ß character. When my list is written to the screen all the ß characters show up as?
I did manage to fix this by getting my data from an ASPX page but that's not the end of the story.
I would like to make this getPeople a web service method. So I create an ASP.net web service that gives me a list of people but now I am back to square one, my ß's are again ?'s.......
I have tried every method of formatting that I came accross
Response.ContentType = "text/html"
Response.Charset = "utf-8"
Session.Codepage = 65001
and many variations of the above.
The really odd thing is that I know that I am getting the characters from the web service in the correct format
Here is the exact output from the WebService, you can see the ß is correct
Expand|Select|Wrap|Line Numbers
- <?xml version="1.0" encoding="utf-8" ?>
- <string xmlns="http://tempuri.org/">
- <select id ="D" name = "asdf" style="width:250px !important;" >
- <option value = "6074">Diane,Langenbacher-Nießing</option>
- </select>
- </string>
Once the above is written to the web page I get this
<select id ="D" name = "TEST" style="width:250px !important;" >
<option value = "6074">Diane,Langenbacher-Nie?ing</option>
</select>
Here is the ASP Code that I use to create the dropdown, it's failry simple
Expand|Select|Wrap|Line Numbers
- <%
- Response.Clear
- Response.ContentType = "text/html"
- Response.Charset = "utf-8"
- Session.Codepage = 65001
- Response.Write consumeWebService()
- Function consumeWebService()
- Dim soapClient
- Set soapClient = Server.CreateObject("MSSOAP.SoapClient")
- soapClient.ClientProperty("ServerHTTPRequest") = True
- soapClient.mssoapinit "http://localhost:1749/GileadGlobal/Service.asmx?wsdl"
- consumeWebService = soapClient.GetEmployees("D","TEST")
- End Function
- %>
PLEASE HELP