DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29364>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29364 Problems in URLEncoder.java with EBCDIC host ------- Additional Comments From [EMAIL PROTECTED] 2004-06-16 15:58 ------- The problem is the conversion between Java Strings (2 byte Unicode) and Byte Arrays (1 byte ASCII/UTF-8 or EBCDIC on z/OS). IBM recommends on their web page (http://www-106.ibm.com/developerworks/eserver/articles/java_code.html) to specify the encoding to avoid these problems. For example: byte [] myBytes = myString.getBytes("8859_1"); I am not a Java programmer so I can't change the code. The other problem could be solved very simple: for (char i = 'a'; i <= 'i'; i++) { addSafeCharacter(i); } for (char i = 'j'; i <= 'r'; i++) { addSafeCharacter(i); } for (char i = 's'; i <= 'z'; i++) { addSafeCharacter(i); } for (char i = 'A'; i <= 'I'; i++) { addSafeCharacter(i); } for (char i = 'J'; i <= 'R'; i++) { addSafeCharacter(i); } for (char i = 'S'; i <= 'Z'; i++) { addSafeCharacter(i); } for (char i = '0'; i <= '9'; i++) { addSafeCharacter(i); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]