Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
2458
|
Spent time |
0
|
Issue Votes (0)
Watchers (0)
Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
2458
|
Spent time |
0
|
I am working with tigase and using mysql and tried to send a message with unicode characters to an offline user and got this exception:
After some research, I discovered that most tables in mysql are created with utf8_general_ci collation, but the msg_history table is using latin1_swedish_ci.
In 5.2.1 I can see that this is because most tables are created when running the initialization script(db-create-mysql.sh) but msg_history is created in code - and here is the difference:
In the script(taken from mysql-schema-4-schema.sql):
In code(Taken from MsgRepository.java in 5.2.1, but looks like it's still happens in master in JDBCMsgRepository.java):
as you can see, it is missing this:
Is there any reason it is not utf8 as well?