I moved data from MySQL 4 (they were originally set to latin2 encoding) to MySQL 5 and set encoding to utf-8. It
latin2 encoding
utf-8
try query
SET NAMES utf8
before any query in your application