Solved

Special characters in request.form

Posted on 2004-09-08
6
476 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select2 jquery help 9 100
Code Manager | Snippits 2 59
asp classic find word in string and get its value 7 32
Building JSON Results Table FROM DB 9 31
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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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