Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 151625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:28:45+00:00 2026-05-11T09:28:45+00:00

I’m using a web service for passing information from a bunch of old .asp

  • 0

I’m using a web service for passing information from a bunch of old .asp pages to a database. Problem is that using httpGet, I need to encode the info so it can be safely passed.

Everything works like a dream, save for the fact that scandinavian letters such as ä ö and å for example come out as squares. Now I don’t even know whether this has to do with the company IIS language settings (can’t touch them) or something, but I’m wondering if there’s a way to force the asp-page to use a specific encoding, and then force the asp.net web service to decode with the same character-set, without any kind of server settings inbetween getting the chance to mix it all up?

I tried to look around, but didn’t find any clear-cut examples of exactly how you can do this. Please keep the replies simple, I’m just a beginner on internship here. Thanks for the help!

Edit: Apologies. Didn’t include the code because it was so simple I didn’t think it’d reveal anything anyway. Here:

.asp

function loginfo()    Dim text    text = 'ääböö'    text = Server.URLENCODE(text)     message = 'http://server1/logger_webservice/service.asmx/test_Event?' & _             'userID=' & userID    Set objRequest = Server.createobject('MSXML2.XMLHTTP')     With objRequest    .open 'GET', message, False    .setRequestHeader 'Content-Type', 'text/xml'    .send    End With     loginfo = objRequest.responseText end function 

web server:

<WebMethod()> _ Public Function test_Event(ByVal userId As String) As Boolean    Dim kirj As StreamWriter    kirj = File.CreateText('C:\Inetpub\server1\Logger_WebService\test_logEvent.txt')     userId = Server.UrlDecode(userId)     kirj.WriteLine('userId = ' & userId)    kirj.Close()    kirj.Dispose() End Function 

Anyway, thanks for help. I’ll be looking into this more but as usual, stress and rush is forcing me to move on. I wrote a simple code to encrypt the most used scandinavian letters manually, and decrypted them in the web server. Works fine so far, I just hope there aren’t any complications alter on. Just wanted the basic Finnish letters ä, ö and å anyway. 🙂

I just thought there was some easy method to force the encoding to a specific charset that I just couldn’t find. Tend to be terrible at finding information on my own.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:28:46+00:00Added an answer on May 11, 2026 at 9:28 am

    Without digging into the code, I cannot give you a ‘here it is on line X’ answer, but the issue you are dealing with is one of encoding. There are multiple ways of encoding strings, from ASCII to UTF-8 to full blown Unicode. What this means is Ifforcing full unicode encoding might solve your problem.

    To do this, you can explicitly create your streams (and/or readers/writers) with an encoding. The method is different for different types of objects, and not knowing your code, I cannot give you an explicit answer.

    With ASP, you may still be getting garbage, however. And, it has been so long since I played with classic ASP, I would have to dig to get an answer there. Fortunately, it sounds like you have a way to test the ASP to ensure the correct characters are coming through, so test. If it works, focus on the web service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.