[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Special characters in request.form

Posted on 2004-09-08
6
Medium Priority
?
490 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
4 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 1000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

865 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