asp classic - Converting French Characters to ASCII on form submit -
Hi there I was wondering if anyone could help with this. I am submitting values for an Access database using ASP Classic and need to convert French letters to ASCII. I have done this before with a form for email script. Here is the code that I used with the first line which is the code that writes a value for the database field. Any help would be great.
[code] '-------------------------------------- -------------------------------------- 'Checks form fields and headings of French characters And changes them with 'ASCII equivalent' -------------------------------------- ----------- ------------------------- rsAddComments.Fields ("Customer") = Request.form (" Change the body ("body", "Á", chr (206), change (body, "Á", chr (1) 9) 3) body = Change (body, "a", chr)) [/ code]
Just set the ISO Latin 1 character Try Page:
& meta http-equiv = "content-type" content = "text / html; Charset = ISO-885 9-1 "/>
This work for me.
Comments
Post a Comment