how can i conver ascii code to string.
for example i want to conver 65 to "A".

Recommended Answers

All 6 Replies

string str = char.ConvertFromUtf32(65)

thanks man

string str = char.ConvertFromUtf32(65)

i cant see this method in char, why?

the following worked for me to convert byte array to string, each byte represents values in ascii codes:

System.Text.Encoding.UTF8.GetString(message, 0, length)

I use this !

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.