Code: Select all
CREATE DATABASE 'db' CHARACTER SET 'utf8';
Code: Select all
CREATE TABLE `Table1` (
[...]
) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
#1
Code: Select all
java -Dfile.encoding=UTF-8 [...]
#2
Code: Select all
System.setProperty("file. Encoding" , "UTF-8");