By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 1,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

System::Text::Encoding Problem

P: n/a
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")

Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I found the solution you have to use D.Equals(E) instead of D==E.
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.