I have stumble into a strange problem and it's been already two days I wasn't abble to solve it.
I have a comment form in a Classic ASP CMS that I am building right now. If I use Romanian characters, with diacritics - like "ş", "ţ", "î", "ă" and "â" - they are not taken correctly. I am using UTF-8 character encoding. From what I have tested so far, it is ASP that is screwing them. What I have tested:
- Response.Write Request.Form("comment")
> they are displayed correct
- Session("Coments")=Request.Form("comment")
Response.Write Session("Comments")
>> They are not displayed correctly
- Response.Write Request.Form
=
The page is now on response write, until I finish checking. Any suggestion, most welcomed.
I have a comment form in a Classic ASP CMS that I am building right now. If I use Romanian characters, with diacritics - like "ş", "ţ", "î", "ă" and "â" - they are not taken correctly. I am using UTF-8 character encoding. From what I have tested so far, it is ASP that is screwing them. What I have tested:
- Response.Write Request.Form("comment")
> they are displayed correct
- Session("Coments")=Request.Form("comment")
Response.Write Session("Comments")
>> They are not displayed correctly
- Response.Write Request.Form
=
Code:
Name=Name&Email=eu%40mysite.ro&Website=www.mysite.ro&Comment=Testing+diacritics%0D%0A%C5%9F%0D%0A%C5%A3%0D%0A%C3%A2%0D%0A%C4%83%0D%0A%C3%AE%0D%0A&strArtId=15&securityCode=fesTer&B1=Submit