2008-04-24 特定の文字列を特定のエンコーディングのバイト配列にする。(Encoding, GetBytes, byte[]) C# 以下、忘れないためのメモ書きです。 よく使う処理なのに、しょっちゅう忘れすのでメモ。 byte[] b = System.Text.Encoding.GetEncoding("sjis").GetBytes("hehehehe");