Search results for query: *

  1. A

    Question Unicode (utf16) to win-1251

    Thanks for the thoughts - I understand where my mistake is!
  2. A

    Question Unicode (utf16) to win-1251

    So I am getting the first character decoded correctly? I thought that in this case, I will get the wrong symbol that I expected. Also I have tried Encoding.Convert Method and I get the whole array but the wrong values: O382II76. Correct value is У382НО76 string b = "Ó382ÍÎ76"; Encoding win1251...
  3. A

    Question Unicode (utf16) to win-1251

    string b = "Ó382ÍÎ76"; Encoding win1251 = Encoding.GetEncoding(1251); byte[] uniByte = Encoding.Unicode.GetBytes(b); textBox1.Text = BitConverter.ToString(uniByte); I get D3-00-33-00-38-00-32-00-CD-00-CE-00-37-00-36-00 - there is no null character.
  4. A

    Question Unicode (utf16) to win-1251

    Hi. I'm trying to decode string from unicode (utf-16) to windows-1251. string b = "Ó382ÍÎ76"; Encoding win1251 = Encoding.GetEncoding(1251); byte[] uniByte = Encoding.Unicode.GetBytes(b); textBox1.Text = win1251.GetString(uniByte); On microsoft doc said that "GetString(Byte[]) When overridden...
Back
Top Bottom