以下の内容はhttps://blog.systemjp.net/entry/2021/08/09/170926より取得しました。


VB.NET Byte配列を文字列に変換する

UNICODE

Private Function UnicodeBytesToString( 
    ByVal bytes() As Byte) As String

    Return System.Text.Encoding.Unicode.GetString(bytes)
End Function

シフトJIS(SJIS)

    Private Function SJISBytesToString(ByVal bytes() As Byte) As String
        System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance)
        Return System.Text.Encoding.GetEncoding("Shift_JIS").GetString(bytes)
    End Function

ネタ元

docs.microsoft.com




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

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