Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encoding issues

 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic