Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 12th, 2012  |  syntax: None  |  size: 0.16 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Windows-1251 to UTF-8 codes
  2. public static byte[] convertEncoding(byte[] bytes, String from, String to) {
  3.     return new String(bytes, from).getBytes(to);
  4. }