Hsqldb table encoding

前端 未结 3 617
清歌不尽
清歌不尽 2021-01-24 07:41

How do I set the character encoding for a specific table? E.g:

CREATE TABLE COMMENTS (
    ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 0, INCREMENT BY 1)          


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-24 08:30

    The problem is that you must convert all rows before import.
    To do this you must export the contents to a file and converter the file into utf-8. Then import it again with utf-8 options.

    MyPHPadmin can import it with utf-8 options, (Remember to check for CHARSET=latin1 / latin1 in the file).

    You can read more about to do it manually her: http://en.gentoo-wiki.com/wiki/Convert_latin1_to_UTF-8_in_MySQL

提交回复
热议问题