Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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
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 <.
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic