[Bug java/14687] Incorrect UTF-8 byte->String conversion

joeclark at iastate dot edu gcc-bugzilla@gcc.gnu.org
Sat Jun 26 22:10:00 GMT 2004

------- Additional Comments From joeclark at iastate dot edu  2004-06-26 21:56 -------
Okay, I've attached a java file that illustrates the bug.  For me, the UTF
character set does *NOT* work for *ANY* ASCII characters.  Perhaps I'm entering
the bytes wrong or something; if this is the case, the attached code should make
my error clear.

When I run this with Sun's JDK, I get the same value for all 127 values.  With
gcj, *every* UTF-8 conversion results in a "?" string; here's a quick snippet:

b 109 --> utf ? & iso m
b 110 --> utf ? & iso n
b 111 --> utf ? & iso o

           What    |Removed                     |Added
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


More information about the Java-prs mailing list