wood burning stoves 2.0*
The moose likes JSF and the fly likes Encoding issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Encoding issues" Watch "Encoding issues" New topic
Author

Encoding issues

Dave Brown
Ranch Hand

Joined: Mar 08, 2005
Posts: 301
Hi all, I have an Icefaces based JSF application in which I've come across an issue.
Part of the application allows a user to specify a text file for upload, which then gets parsed and processed.

The text can contain names which include internation characters such as the spanish/french accents for example..

Now when I was testing on my local Vista development box, everything was fine, I can upload my file and then I present the data no problem.

My problem occurs when I testing on a linux server (glassfish v2), after I upload the file, the international characters are presented as little questionmarks in diamonds.

Any thoughts/ideas why this is happening would be appreciated....

Thanks


Regards, Dave Brown
SCJP 6 - [url]http://www.dbws.net/[/url] - Check out Grails Forum
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16160
    
  21

The operative word is "presented". The program you're using to view the data with isn't using a font that properly defines those characters. You may be able to change what font that app is using. However, if the characters were uploaded according to one of the Windows-only character set encodings, you probably should (also?) translate them to proper Unicode. Or at least UTF-8.


Customer surveys are for companies who didn't pay proper attention to begin with.
Dave Brown
Ranch Hand

Joined: Mar 08, 2005
Posts: 301
Tim Holloway wrote:The operative word is "presented". The program you're using to view the data with isn't using a font that properly defines those characters. You may be able to change what font that app is using. However, if the characters were uploaded according to one of the Windows-only character set encodings, you probably should (also?) translate them to proper Unicode. Or at least UTF-8.


Hmm not sure I follow you as the presenting program remains constant, in my case it is the firefox browser. The difference between a working and non working example is whether the web app is running on my local windows machine or via a linux server.
 
jQuery in Action, 2nd edition
 
subject: Encoding issues