jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes presence of '\ufffd'  in resource bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "presence of Watch "presence of New topic
Author

presence of '\ufffd' in resource bundle

Vijay Venkat
Ranch Hand

Joined: Aug 12, 2001
Posts: 52
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
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
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

Joined: Aug 12, 2001
Posts: 52
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
 
Don't get me started about those stupid light bulbs.
 
subject: presence of '\ufffd' in resource bundle
 
Similar Threads
Using more than 1 properties file with Action Form
Can I use include file in resource bundle properties file?
How to use one resource bundle in another bundle?
how can I convert a unicode back into Chinese ?
Any difference between Context and Static variables ?