How to convert MS Access database encoding to UTF-8?

后端 未结 4 1566
面向向阳花
面向向阳花 2020-12-19 06:27

I am currently working on a legacy Classic ASP + MS-Access application. I recently converted all the .asp files to UTF-8 from ISO-8859 (Windows) encoding.

The proble

4条回答
  •  北海茫月
    2020-12-19 06:47

    You can do this in Access 2000.
    Right click on the table you want to convert.
    Select “Export”
    In the “Save as type” drop-down list choose “Text Files (.txt;.csv;.tab;.asc)”, enter a name for the exported file and press "Save"
    Choose delimited and press "Advanced"
    In the “Language” list choose “All”, in the “Code Page” list choose “Unicode (UTF-8)”
    Change any other settings here that you want
    Press “OK”, Press "Next" and select your delimiter. Check the option to Include Field Names in First Row
    Press "Next", confirm the destination folder for the new file and click "Finish"

    The next stage is to reimport the saved file:
    Select File, Get External Data, Import
    In the “Files of type” drop-down list choose “Text Files (.txt;.csv;.tab;.asc)”
    Navigate to the saved text file and press Import
    Specify delimited and press "Next"
    specify the delimiter character and press "Next"
    Press "Advanced" button and once again choose All in the “Language” list, and choose “Unicode (UTF-8)” in the “Code Page”
    Select radio button to save in a new table and press "Next"
    Select radio button for "No Primary Key" (otherwise, Access will insert an IDfield as the first field in the table, which you may not want) Click "Next", check the name of the imported table, and click "Finish"

    NOTE:

    1. You will have to edit the new table to give it field names, but these should be in the first record if you exported them.

    2. Access will autoassign Number type to imported Boolean types and Date types, so you may need to change these

提交回复
热议问题