Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF problem with UTF8encoding

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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic