2007-02-28から1日間の記事一覧

HexDump

HexDump.java import java.io.*; public class HexDump { public static void main(String[] args) { try { if (args.length < 1) { System.err.println("1 argument is required."); System.exit(1); } int readLength; byte[] buf = new byte[16]; FileInp…

全角チルダ等の文字化け

【CP932/Shift_JIS 両方】 「〜」= 8160【Unicode】 FF5E=FULLWIDTH TILDE 301C=WAVE DASH【CP932 ←→ Unicode】 8160 ←→ FF5E 対応なし ← 301C【Shift_JIS ←→ Unicode】 8160 ←→ 301C 対応なし ← FF5E 参考: UnicodeコンソーシアムのCP932←→Unicode 対応…