0

Hello
I have a form that a user insert some input

form accept-charset='UTF-8' action="addcommentcheck.jsp" method="post" id="addcommentid">
...
</form>

and at addcommentcheck.jsp i do
request.setCharacterEncoding("UTF-8");
But when i try to insert it to database the only thing that i insert is ????? When i show to the user the input i can see the correct input but when i insert to database i have the ??? What i am doing wrong?
Thank you very much

3
Contributors
4
Replies
11
Views
4 Years
Discussion Span
Last Post by xxmp
0

how do i change the collation of my database? I want to change it to utf8_general_ci or to utf8_unicode_ci? What is the difference? Is there any command to change the database collation?

Edited by peter_budo: Removed code tag formatting

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.