• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unicode differences - Win vs Solaris

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I developed a webapp on the win 2k version of WAS. Now that I have deployed it on Solaris something wierd is happening. In certain places in the java code I put a unicode 00A0 (no-breaking space) into a string that is to be sent back to the browser (for populating a select box.. long story). Anyway all is good on win2k. When I deploy the app to Solaris the no-breaking space is now a question mark. I know that it has to do w/ the differences between Win and Solaris, but for the life of me I have been unable to locate the unicode value for a non-breaking space for Solaris. Any help would be appreciated.
- PJ
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unicode values are the same everywhere. However (a) not every platform can display every character (though I'd think Unix should have no trouble with nbsb, and (b) you may well be relying on some default encoding scheme other than Unicode which is providing different results here.
Since you're displaying this data in an HTML context, probably the best solution is to replace your non-breaking space with the HTML character entity "&nbsp;". This should represent a non-breaking space, just as "&amp;" represents '&', or "&lt;" represents <.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic