This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14687


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]