Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

charcter set / mark accent

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, I've a problem displaying words with mark accent on some chars.
On the top of my JSP code I've got this declaration

<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>

How can I fix the problem?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "a problem"? What's happening exactly?

Two things to check are: 1) are those characters really encoded with UTF-8?, and 2) do you have a font installed that contains those characters?
 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This's what happens:
when into a form (I'm using Struts framework) I enter a word like "luned´┐Ż", the last word turns out with a couple of different characters. It isn't a DB error, because it happens even if the form comes back due an error made by the user.


Any suggestions?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what are the answers to the questions?

Here are a couple more question to investigate: Does the character make it OK to the server? (The fact that it doesn't make it back to the browser OK doesn't that it wasn't OK when it got to the server.) Is it stored OK in the DB? Is the DB set up for whatever encoding you're using?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic