Hi all,
I am currently converting a website to the UTF-8 charset. I've fixed everything so far by the following method:
Every page of the website starts with these tags:
Then every page gets a meta tag with the correct charset:
When saving data to the database each query is adjusted by adding a 'N' in front of every string like so:
Every string value in the database has a 'ntext' or 'nvarchar' type so unicode is supported.
Now all of this works fine except for forms that use the
attribute.
I use this when I need to upload a file. When I add a text field to the form, this text isn't converted into UTF-8.
I have browsed multiple pages with information on how to do this but I can't seem to figure it out without using a tool such as 'ASP Huge File Upload',...
Can anyone tell me how this can be done without one of these tools?
Thank you in advance!
regards,
avalon
I am currently converting a website to the UTF-8 charset. I've fixed everything so far by the following method:
Every page of the website starts with these tags:
Code:
<%@ CODEPAGE = 65001%>
<%Session.CodePage = 65001%>
Then every page gets a meta tag with the correct charset:
Code:
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
</head>
When saving data to the database each query is adjusted by adding a 'N' in front of every string like so:
Code:
INSERT INTO table (id, text) VALUES(" & id & ",N'" & myText & "')
Now all of this works fine except for forms that use the
Code:
enctype="multipart/form-data"
I use this when I need to upload a file. When I add a text field to the form, this text isn't converted into UTF-8.
I have browsed multiple pages with information on how to do this but I can't seem to figure it out without using a tool such as 'ASP Huge File Upload',...
Can anyone tell me how this can be done without one of these tools?
Thank you in advance!
regards,
avalon