By default, ajax request doesn't change any encoding to raw data, which is likely to be iso-8859-1. However, default PHP5 encoding is UTF-8 and if you use utf-8 in mysql, then you need to tell mysql to set name='utf-8' after connecting to DB. That's to make DB connection encoding as you want =)