on 04-24-2007 4:25 PM
I have 2 WAS servers version 6.40 sp13. One on
windows server 2003
and other onlinux
. I deploy the same application on both servers and that application displays aeuro currency symbol
on the browser. The WAS server running on windows serevr 2003 is able to display the euro currency symbol properly but the server running on linux displays garbage instead(like this ⬠).
I have tested all the browsers and it doesnt seem to be browser related.The application is built on JSF with XML style UTF-8 encoding.
Both servers have the default configuration and both OS have the default configurations as well. I tried to find the difference in server configs but couldn't find anything.
Any help is appreciated.
This is the header on all the pages.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Hi!
If you use the euro character, you'll find problems, cause Windows uses ANSI Encoding, and Linux normally uses UTF or ISO (depends on the version). Use the HTML especial character <b>& euro;</b>(without the space in the middle) instead. It doesn't matter the encoding you are using on your jsp, it will no render properly if you don`t use the especial character.
Hope this can help you ,
Eneko
PD:Sorry, my english is terrible!
Message was edited by:
Eneko Rodriguez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
We had the same problem, a J2EE application had to face: one for intranet users and another one for internet users.... we finally decided to create a method to convert especials characters to HTML charaters, like to & euro;. It's a boring task, but you can use it later, working with other proyects....
Hope this can help you.
Eneko
Message was edited by:
Eneko Rodriguez
I don't think I made my point clear. The problem is not only with Euro characters but with all the other non-english characters that are found in unicode. We are going to support multiple languages (French, german etc.) and I dont think its a wise decision to convert all these characters in their HTML equivalent (if they exist).
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.