Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

i18N - character gets displayed as block  RSS feed

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on i18n , my application supports both English and French display. It is a JSF application and it has got few tabs, when the page is displayed for the very first time the french characters are displaying properly but if i navigate between tabs some characters are getting displayed as blocks.


d´┐Żabri is getting displayed as d□abri


I dont think its anything related to JSF so im posting the question here. Any help is appretiated !!

Thanks,
Rajeev
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check for the encoding when you travel between the tabs.
encoding is getting changed somehow and according to the new code page the bytes are not of valid code points and hence rendered as junk value.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Rahul.

I had problems with navigation between tabs with French version, i added a filter to set the character encoding of request and response to UTF-8 and it fixed the navigation issue. So i beleive the characterencoding will be always UTF-8. Its working good for all letters with French Accents except for one or two.

Thanks,
Rajeev
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!