This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 41134
    
  45
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: 41134
    
  45
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: charcter set / mark accent
 
Similar Threads
problem with errorPage and isErrorPage="true"
xsl: anchor problem
Hibernate + MySQL Encoding
Can get the Form Feed "\f" to work!
Formatting help..