private void button6_Click(object sender, EventArgs e) { System.IO.FileStream fs = new System.IO.FileStream( "jis2ucs.bin", System.IO.FileMode.Open, System.IO.FileAccess.Read); byte[] bs = new byte[fs.Length]; long fsize=fs.Length; fs.Read(bs, 0, bs.Length); fs.Close(); int i = 0; //int unicp = 0; int jiscp = 0; //string uni = ""; byte[] bb = new byte[2]; int[] unicp = new int[0x10000]; string[] uni = new string[0x10000]; System.Text.StringBuilder sb = new System.Text.StringBuilder(); for (i = 0; i * 2 < fsize; i++) { jiscp = i; unicp[i] = BitConverter.ToUInt16(bs, i * 2); bb = BitConverter.GetBytes(unicp[i]); uni[i] = System.Text.Encoding.GetEncoding(1200).GetString(bb); uni[i] = uni[i].Replace("\x0", ""); uni[i] = uni[i].Replace("\xd", ""); if (unicp[i] != 0 && i > 0) { sb.Append("0x"); sb.Append(jiscp.ToString("X")); sb.Append("\tU+"); sb.Append(unicp[i].ToString("X")); sb.Append("\t#"); sb.AppendLine(uni[i]); } } System.IO.StreamWriter sw = new System.IO.StreamWriter("jis2ucs.txt",false,System.Text.Encoding.GetEncoding(65001)); sw.Write(sb.ToString()); sw.Close(); sb.Clear(); string th = "