473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP Page Character Set Problem, Please Help

Let me start by saying that I have searched high and low for a solution to this problem and I am about ready to give up... grrrrrrr


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
  1. <?xml version="1.0" encoding="utf-8" ?> 
  2.     <string xmlns="http://tempuri.org/">
  3.         <select id ="D" name = "asdf" style="width:250px !important;" > 
  4.             <option value = "6074">Diane,Langenbacher-Nießing</option>
  5.         </select>
  6.     </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
  1. <%
  2. Response.Clear
  3. Response.ContentType = "text/html"
  4. Response.Charset = "utf-8"
  5. Session.Codepage = 65001
  6.  
  7. Response.Write consumeWebService() 
  8. Function consumeWebService() 
  9.     Dim soapClient
  10.     Set soapClient = Server.CreateObject("MSSOAP.SoapClient") 
  11.     soapClient.ClientProperty("ServerHTTPRequest") = True 
  12.     soapClient.mssoapinit "http://localhost:1749/GileadGlobal/Service.asmx?wsdl" 
  13.     consumeWebService = soapClient.GetEmployees("D","TEST")
  14. End Function
  15. %>


PLEASE HELP
Feb 26 '08 #1
4 2141
CroCrew
564 Expert 512MB
Please don’t double post questions.

Thank you~
Feb 26 '08 #2
Sorry for the Duplication, I tried to delete but it olny lets me edit?
Feb 26 '08 #3
jhardman
3,406 Expert 2GB
Sorry for the Duplication, I tried to delete but it olny lets me edit?
It's been a while since I was an ordinary member, and back then this site was in a different format, so I don't remember how deletes are carried out.

As far as your problem, I think your web service is converting it. Is there anyway you can escape characters in the web service? Perhaps convert it to &szlig; or &#223;
Feb 27 '08 #4
markrawlingson
346 Expert 100+
Thankfully I only got my mod status a few days ago, so I can tell you there is no delete option, you can only delete the content from your post so that your post shows up empty - not very good. Though If I post something and then figure out the answer I usually edit my post with "nevermind this thread, figured it out"

:)

Sincerely,
Mark


It's been a while since I was an ordinary member, and back then this site was in a different format, so I don't remember how deletes are carried out.

As far as your problem, I think your web service is converting it. Is there anyway you can escape characters in the web service? Perhaps convert it to ß or ß
Feb 28 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Frlo | last post by:
Hi, I have problem that I tried to solve but i missed out. My situation: I have problem that my page www.vodotika.sk display some wrong characters. Apache server 2.0.54 runs on windows-1250...
6
by: Paul Robinson | last post by:
I am developing a website in ASP that connects to a Sybase database. However, when I try to open a connection to the database the page will not load. The script does not timeout, nor the...
11
by: The Bicycling Guitarist | last post by:
Oh lords and ladies of ciwah, I have already been told by one person that the <h1> on my home page doesn't look like proper semantic markup to them. That person suggested a <p> with style by CSS....
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
4
by: Eddie | last post by:
Hello, there. I'm just a newbie for ASP. I made a webpage with VS2005. The page contains nothing. It's a default page when I created webpage in the VS2005. IE shows me error message that he...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
0
by: Grzesiek | last post by:
Hey there! Please help me... I've got a iSeries (AS 400 with DB2), and I must connect to this database from Linux. On AS400 I've this settings (which I can't change): Language: Polish...
1
by: kang jia | last post by:
hi when user entered particulars in signuppage and click" signup" button, i will direct them to do_signup.php. if say the NRIC is dupicate in datebase, i will redirect them back to signup page...
11
by: PW | last post by:
One of my ASP's was working fine for a long time. Now it has started constantly refreshing itself. Everytime I run it I just get the first part of the page, then it refreshes itself, the rest of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...

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.