• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

charcter set / mark accent

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic