If i have a byte b encoded as ISO Latin 1 (ISO 8859-1) is it enough to do
char output = (char)b; This seems to work but I don’t know if there is another way.
If i have a byte b encoded as ISO Latin 1 (ISO 8859-1) is
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.
A direct cast seems to work for this particular encoding. However, best practice would be to use the Encoding.GetChars method for proper conversion.