I have a MS SQL query that returns a UTF-8 encoded field (a varchar). How do I convert it to a .NET Unicode string? UTF8Encoding.GetString will do the job … if you have an array of bytes – I don’t.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Adapted a possible solution from this question: C# Convert string from UTF-8 to ISO-8859-1 (Latin1) H
Does this help?