• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF problem with UTF8encoding  RSS feed

mar mm
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I'am using JSF with MySQL 5.1 and glassfish v2. When I enter data (using my language - serbian) in database from MySQL Querry Browser, everything is displayed fine.
Problem starts when I create a INSERT querry from JSF application. Letters are displayed like ???. I founded a few solutions with Google, but they aren't working for me - for example I saw that i should insert this code in sun-web.xml:

Than my sun-web.xml looks like this, but problem still exists.

I'am using
<%@page contentType="text/html" pageEncoding="UTF-8"%>

on every .jsp page.

Could anyone help me?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!