Link to home
Start Free TrialLog in
Avatar of harishsc
harishsc

asked on

Special characters in request.form

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
Avatar of huji
huji
Flag of United States of America image

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..
Avatar of harishsc
harishsc

ASKER

Thanks, I tried changing the charset but did not work, but whatz this LCID, how do I do that.
ASKER CERTIFIED SOLUTION
Avatar of huji
huji
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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