Solved

Special characters in request.form

Posted on 2004-09-08
6
474 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
ID: 12009635
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
ID: 12009746
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
ID: 12009784
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
ID: 12009809
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Update field in order 21 140
I am getting ASP error  xmlParseEntityRef: no name. Anyone can help ? 1 62
Select2 jquery help 9 88
Issues with Insert statement 12 26
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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