views:

21

answers:

1

I wrote a JSP code that needs to run some mysql INSERT queries that contains non-English chars (Persian). I run two types of queries first one is static application installation queries and second one is user inputs. After execution of both of queries non-English chars are imported as "?" as I check them in application itself and phpMyAdmin!

I tried to execute these queries after connection but I didn't help:

SET NAMES utf8
SET CHARACTER SET utf8
SET SESSION collation_connection = 'utf8_general_ci'

What's the problem ? How can I fix it?

+1  A: 
BalusC
It worked! Thank you very much!
Snigger
You're welcome.
BalusC