1

How to display UTF-8 characters?

asked 2013-08-30 14:11:40 +0800

Jardo gravatar image Jardo
11 1

Hi, I'd like to display UTF-8 encoded texts which contain special characters (Russian/Chinese letters, etc.) in components (label, grid, etc.). But every time I try to display a string, all the special characters are replaced by a normal question mark.

My utf-8 strings are 100% valid. Do I need to configure something in my Tomcat server or something like that?? Please help, I've been trying to figure this out for a week now :(

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-09-02 11:29:26 +0800

dis gravatar image dis flag of Switzerland
140 4

Hi

  1. check your browser character encoding. In Firefox, check View -> Character Encoding
  2. You could set the content type of your page with <?page title=".." contentType="text/html;charset=UTF-8"?> see also http://books.zkoss.org/wiki/ZUMLReference/ZUML/ProcessingInstructions/page

Regards, Dieter

link publish delete flag offensive edit

Comments

HI, this is all ok. I'm now 100% sure that there is something wrong with my TomCat because when I deployed my project on a production server, everything worked fine. I tried to follow the steps described here: http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q8 but non of that stuff works.

Jardo ( 2013-09-16 15:44:43 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-08-30 14:11:40 +0800

Seen: 29 times

Last updated: Sep 02 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More