I inherited an old web application, that is writing data collected in a form into an Access 2007 database using classic ASP.
Now they need it to be able to collect input in the Cyrillic alphabet.
I'm completely unfamiliar with code page/ char sets, and working with non latin alphabets.
I've tried altering the charset on the entry form page to ISO-8859-1 , which does seem to store the ascii value of the characters (eg: #1076;). So that is interpreted and read by the browser fine, but is pretty much useless in terms of then exporting that data into excel to pass around to the departments that need it.
So my question is:
Is there an easy way to capture Cyrillic characters from the web form and insert them as Cyrillic characters into my access table?
or alternately
Is there a tool or setting within the access database that can convert the decimal values (#1076;) into Cyrillic characters within access itself.
If you stick with UTF-8 for your pages they should work (but see the Important Note below). While it is true that Access does not store Unicode characters internally as UTF-8 the Access OLEDB driver will take care of the conversions for you.
Consider the following sample script (where
65001
is the "code page" for UTF-8):Starting with a table named [vocabulary] in the Access database
when we load the ASP page we see
If we add a new entry for a Russian word
and click "Submit" the page will refresh with
and if we check the table in Access we see
Important Note
Be aware that you should NOT be using an Access database as a back-end data store for a web application; Microsoft strongly recommends against doing so (ref: here).