cancel
Showing results for 
Search instead for 
Did you mean: 

Windows vs Linux - character encoding

Former Member
0 Kudos

I have 2 WAS servers version 6.40 sp13. One on

windows server 2003

and other on

linux

. I deploy the same application on both servers and that application displays a

euro 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>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

The problem is that the Euro character comes from a database, and problem is not only limited to Euro character. Its with all the non english characters like french. It shows garbade for french language characters from servers in linux.

Thanks for the your help though.

Former Member
0 Kudos

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

Former Member
0 Kudos

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).