Created
September 22, 2017 02:33
-
-
Save kuninet/a93c95d3c25eb10270632dd3e3d180f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.UnsupportedEncodingException; | |
public class EBCDICtest { | |
public static void main(String[] args) { | |
byte[] ibm=null; | |
try { | |
String unicode = "T0001 アイウエオ"; | |
ibm = unicode.getBytes("Cp930"); | |
} catch(UnsupportedEncodingException e) { | |
} | |
for(int i=0;i<ibm.length;i++) | |
System.out.printf("%02X\n",ibm[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment