bookmarks of the day 11/25/2009
Posted by Toshi | | Posted On Nov 25, 2009 at 11:30 PM
- public class MojiCode {
public static void main(String[] args) throws Exception {
String s = "㈱草彅 4¢~10¢";
System.out.println(new String(s.getBytes("Windows-31J")));
System.out.println(new String(s.getBytes("Shift_JIS")));
}
} - ㈱草彅 4¢~10¢
?草? 4??10?
- Windows-31Jとは、Windows環境で用いられている文字コードのことです。Windows環境の文字コードはShift_JISと思われている方も多いですが、正確にはWindows-31JとShift_JISは異なるものです。Windows-31JとShift_JISの違いは特殊文字をサポートしているかにあります。Windows-31Jは特殊文字として、NEC特殊文字(まる1、(株)など)、IBM特殊文字(はしご高)などをサポートしています。
Posted from Diigo. The rest of my favorite links are here.