System::Text::Encoding Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The E==D fails for some reason. Can enyone tell me why

String* A = S"ABC"
String* C = S"ABC"
Byte ByteGet[] = Encoding::UTF8->GetBytes(A)
Byte ByteGetH[] = Encoding::UTF8->GetBytes(C)
String* D = Encoding::UTF8->GetString(ByteGet)
String* E = Encoding::UTF8->GetString(ByteGetH)
if(E==D

Console::WriteLine("E==D")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top