Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

presence of '\ufffd' in resource bundle  RSS feed

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can any one let me know when can a character '\ufffd' get in to a resource bundle.

On trying to figure out what '\ufffd' means - i figured out it means NAN (Not a number in java) - is that correct?

what does the presence of '\ufffd' in a resource bundle signify. I faintly know it is a error and should not be allowed.

Don't know when it happens and how it happens.

Any information on this is higly appreciated.

Thanks,
Vijay Venkat
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding...

\fffd is the Unicode 'Replacement Character' - general meaning is you tried to convert a char to Unicode but there was either no mapping, or more than one mapping. So I guess you could consider it "Not A Character" - a bit like NaN, but certainly not equivalent.

In any case, Unicode escapes are processed when loading a properties file so '\ufffd' will be converted to one single Unicode char.

I could be wrong here, though...anyone?


--Tim
 
Vijay Venkat
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim
Thanks a lot for you response.
If some feels there is more to it, please do comment!
More information more clarity.

Thanks,
Vijay Venkat
 
We're all out of roofs. But we still have tiny ads:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!