Corrected UTF-8 encoding

This commit is contained in:
Oldaris
2008-07-16 14:44:17 +00:00
parent 5782c42d25
commit 14a6352d9a

View File

@ -294,10 +294,10 @@ public class HeaderLine implements Encoding {
}
public static void main( String[] args ) throws EncodingException {
String text = "Subject: test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test \r\n" +
"From: Sm<EFBFBD>rebr<EFBFBD>d <smoerebroed@mail.i2p>\r\n" +
"To: <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <lalala@mail.i2p>\r\n";
"From: Smörebröd <smoerebroed@mail.i2p>\r\n" +
"To: äöüß <lalala@mail.i2p>\r\n";
HeaderLine hl = new HeaderLine();
System.out.println( hl.encode( text ) );
System.out.println( hl.encode( "test <EFBFBD><EFBFBD><EFBFBD>" ) );
System.out.println( hl.encode( "test ÄÖÜ" ) );
}
}
}