ASP Page Character Set Problem, Please Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • salsipius
    New Member
    • Feb 2008
    • 2

    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.Conten tType = "text/html"
    Response.Charse t = "utf-8"
    Session.Codepag e = 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

    Code:
    <?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:25 0px !important;" >
    <option value = "6074">Diane,La ngenbacher-Nie?ing</option>
    </select>



    Here is the ASP Code that I use to create the dropdown, it's failry simple


    Code:
    <%
    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
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    #2
    Please don’t double post questions.

    Thank you~

    Comment

    • salsipius
      New Member
      • Feb 2008
      • 2

      #3
      Sorry for the Duplication, I tried to delete but it olny lets me edit?

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Originally posted by salsipius
        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 &#38;szlig; or &#38;#223;

        Comment

        • markrawlingson
          Recognized Expert Contributor
          • Aug 2007
          • 346

          #5
          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


          Originally posted by jhardman
          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 ß

          Comment

          Working...