I want to insert arabic data that contains diacritics in my database but I got this exception I have already added this to the my.ini file
[client] default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
and I also added this to my hibernate.cfg.xml
<property name="hibernate.connection.properties">useUnicode=yes;
characterEncoding=utf8;
</property>
<property name="hibernate.connection.useUnicode">true</property>
<property name="hibernate.connection.characterEncoding">utf-8</property>
but in vain
答案 0 :(得分:0)
就我而言。我曾经把编码设置为utf-8。 my.ini文件具有以下配置
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&useSSL=false
我使用以下网址
var sum = parseInt(my_input1) + parseInt(my_input2) + parseInt(my_input3) + parseInt(my_input4) + parseInt(my_input5) + parseInt(my_input6);
if (sum != 100) {
alert('Different from a hundred')
return false;
}
云工作正常。