以下の内容はhttps://blog.systemjp.net/entry/2017/07/28/151404より取得しました。


C#でstring(文字列)からバイト型配列 byte[] (バイナリ) に変換する

private void button1_Click(object sender, EventArgs e)
{
  string text = "文字列";

  //ASCII エンコード
  byte[] data = System.Text.Encoding.ASCII.GetBytes(text);
  
  //データがShift-JISの場合
  //byte[] data = System.Text.Encoding.GetEncoding("shift_jis").GetBytes(text);

  //データがEUCの場合
  //byte[] data = System.Text.Encoding.GetEncoding("euc-jp").GetBytes(text);

  //データがunicodeの場合
  //byte[] data = System.Text.Encoding.Unicode.GetBytes(text);

  //データがutf-8の場合
  //byte[] data = System.Text.Encoding.UTF8.GetBytes(text);

  //何かしらの処理
  WirteBinaryData(data);
}



以上の内容はhttps://blog.systemjp.net/entry/2017/07/28/151404より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14