From: SourceForge.net <no...@so...> - 2007-11-21 13:13:24
|
Bugs item #1818393, was opened at 2007-10-23 16:49 Message generated for change (Settings changed) made by larrylau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1818393&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: None >Status: Open Resolution: Fixed Priority: 5 Private: No Submitted By: larry (larrylau) Assigned to: Nobody/Anonymous (nobody) Summary: why using Deprecated method in PyString? Initial Comment: such as /** * @return a byte array with one byte for each char in s. Each byte contains * the low-order bits of its corresponding char. */ public static byte[] to_bytes(String s) { int len = s.length(); byte[] b = new byte[len]; s.getBytes(0, len, b, 0); return b; } =============> return s.getBytes(); more better? ---------------------------------------------------------------------- Comment By: Philip Jenvey (pjenvey) Date: 2007-11-17 09:02 Message: Logged In: YES user_id=145787 Originator: NO This was changed to use String.getBytes('ISO-8859-1') in r3668-3669 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1818393&group_id=12867 |