Solved

Special characters in request.form

Posted on 2004-09-08
6
470 Views
Last Modified: 2008-03-06
Hi Guys,

Whenever I have a problem I can think of only this forum.
The problem that I have here is somthing to do with the special characters, I have an asp page posting an XML file stored as a string in a textbox object, and I do request.form("txtbox")  in another asp page to retrieve the value posted from that page, the XML file which is a string in the textbox has some special charactered words(for example portugese words like Acessórios, here "o" has an accent mark ), request.form("txtbox") gives me such words with junk chars meaning, "Acessórios" is shown as "Acess&165rios" etc, I have tried htmlencode,urlencode and other stuff, but to no avail, can somebody suggest me something here please.

Thanks
Harish
0
Comment
Question by:harishsc
  • 3
6 Comments
 
LVL 14

Expert Comment

by:huji
Comment Utility
Well hard to say before seeing the code, but you can normally aviod these by selecting an appropriate charset for your output file, and a good LCID for the session.
If that's too brief, or you can't understand it, let me know, and I'll give you the details.
Wish I can help
Huji
PS:We solved another question here, about Arabic characters (awfully harder than your case in one point of view ;o) ) and it worked. Try by starting with changint the charset to UTF-8 and the LCID to the appropriate..
0
 

Author Comment

by:harishsc
Comment Utility
Thanks, I tried changing the charset but did not work, but whatz this LCID, how do I do that.
0
 
LVL 14

Accepted Solution

by:
huji earned 250 total points
Comment Utility
Well, LCID stands for Locale ID. In simple words, this is the language that the ASP will be use as default in its actions...
You can set an LCID this way:
Session.LCID = <locale number>
For example:
Session.LCID = 2070           ' for Portuguese - Portugal (not Brazil)
Here is a list: http://www.juicystudio.com/tutorial/asp/lcid.asp
Wish I can help
Huji
0
 
LVL 14

Expert Comment

by:huji
Comment Utility
And to check the idea out, I recommend this:
Create a page with a simple form (action = same page), with a text box and a submit button. Type somthing with those special chars in the text field, and submit, then see how it appears in the querysting above there in the address bar.. tell me how it is.
Huji
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now