aspose file tools*
The moose likes JSP and the fly likes charcter set / mark accent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "charcter set / mark accent" Watch "charcter set / mark accent" New topic
Author

charcter set / mark accent

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
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?


trying to decode a woman mind....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42280
    
  64
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?


Ping & DNS - my free Android networking tools app
Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
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
Marshal

Joined: Mar 22, 2005
Posts: 42280
    
  64
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: charcter set / mark accent