> CharsetEncoder for UTF-16 canEncode('\ufffe') is a bug?
CharsetEncoder for UTF-16 canEncode('\ufffe') is a bug?
in SUN's bug database I see that canEncode has quite
a few entries recently. By chance I stumbled myself
over this one just now
returns true. The unicode spec says that FFFE is not
a character, so I would have expected this to be false.
On 28 Jun 2004 02:41:47 -0700,
(Harald Kirsch) wrote
or quoted :
>returns true. The unicode spec says that FFFE is not
>a character, so I would have expected this to be false.
If you disagree with its definition of encodable, you can put a
wrapper around it to deal with your exception.
At least you can fix it. canDisplay is irretrievably broken by
returning true for any no space blob it puts up.
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
for The Java Glossary.
Implementing "package" interfaces
Show Printable Version
Email this Page
post new threads
edit your posts
HTML code is
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc..
SEO by vBSEO ©2010, Crawlability, Inc.