Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Encoding.GetEncoding(1255) and Encoding.GetEncoding(1252)?

Tags:

c#

.net

encoding

I have a C# form based program and have been using

System.Text.Encoding.GetEncoding(1252)

but I've had trouble reading non-English characters, I've discovered

System.Text.Encoding.GetEncoding(1255)

works however I don't know the implications of changing this so I'm hoping someone can shed some light on the difference and possible implications.

like image 864
Jonathan Avatar asked Mar 23 '10 15:03

Jonathan


1 Answers

I recommend that you read Joel Spolsky's article The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)

like image 186
Klaus Byskov Pedersen Avatar answered Oct 08 '22 10:10

Klaus Byskov Pedersen