playframework 2.0 - Error when save Vietnamese font in playframework2 + java + Mysql Workbrench -


i use play2.0.4 + java + mysql workbench on ubuntu :)

when add

em xin cảm ơn // = thank  

this error appeared :

[persistenceexception: error executing dml bindlog[] error[incorrect string value: '\xe1\xba\xa3m \xc6...' column 'description' @ row 1]]  

and mark error user.save()

public static void create (users user){             user.save(); // mark line } 

and if changed password, display :

em xin c?m ?n 

i try config databse collation utf8_unicode_ci , utf8_general_ci or latin_general_ci didn't work.

any ideal or in case ?

oh ~.~ change database utf8-defaultcollation , worked :) hope other language :)


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -