Hsqldb table encryption
How do I customize the character encoding for a specific table? For instance:
CREATE TABLE COMMENTS (
ID INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 0, INCREMENT BY 1) NOT NULL,
TXT LONGVARCHAR,
PRIMARY KEY (ID)
)
It is encoded as ASCII by default, but I would rather use UTF-8 for this table.
+1
3 answers
The problem is that you have to convert all strings before importing.
To do this, you must export the content to a file and convert the file to utf-8. Then import it again using utf-8 parameters.
MyPHPadmin can import it using utf-8 options (remember to check CHARSET = latin1 / latin1 in the file).
You can read more about how to do it manually: http://en.gentoo-wiki.com/wiki/Convert_latin1_to_UTF-8_in_MySQL
0
a source to share