-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.7
-
x86
-
windows_nt
Name: gsC80088 Date: 03/22/99
=20
Hi there,
the problem is with conversion of german=20
umlauts into another codepage, where the
ue (a "u" with two dots on it) and the
capital letter AE (an "A" with two dots on it)
are not properly converted and result in=20
question marks (?). jdk1.1.6 works fine.
Environment:
- Win NT Workstation US Version with SP 3
- any jdk1.1.7 (tried 1.1.7, 7A and 7B)
- the only national specific setting is
"Control Panel->Regional Settings->
Input locales" are set to German(Standard)
as default (german keyboard).
a piece of code:
//////////// SNIP
public class UmlautPRT extends Object {
=09public UmlautPRT() {
=09=09super();
=09=09System.out.println("German Umlaut Tester");
=09=09try {
=09=09=09String line =3D new String("here are the letters =E4 =F6 =FC =DF -=
and in capital =C4 =D6 =DC");
=09=09=09System.out.println("Line is: "+line);
=09=09=09byte[] bline =3D line.getBytes("Cp437");
=09=09=09String newline =3D new String(bline);
=09=09=09System.out.println("Newline is: "+newline);
=09=09} catch (Exception e) {
=09=09=09// must catch unsupported encoding exception from getBytes()
=09=09=09e.printStackTrace();
=09=09}
=09}
=09public static void main(String argv[]) {
=09=09UmlautPRT p =3D new UmlautPRT();
=09}
}
//////////END SNIP
Compiling and running the above shows the=20
correct umlauts for all letters except=20
the "ue" and the capital (AE), which are
displayed as question marks.
This worked fine in jdk1.1.6.
Thank you very much.
(Review ID: 47782)=20
======================================================================
- duplicates
-
JDK-4179049 German Umlaute not fully supported in 1.1.7?
-
- Closed
-