2,892 questions
Try this:
Encoding encoding = Encoding.GetEncodings( ).First( e => e.DisplayName == "Korean (EUC)" ).GetEncoding( );
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
I need to get the Encoding from a string which is a valid string : Encoding.EncodingName
ie: Korean (EUC) or Central European (Windows)
Having this string, how to get the proper encoding?
Encoding.GetEncoding("Central European (Windows)") will not work.
Thanks
Try this:
Encoding encoding = Encoding.GetEncodings( ).First( e => e.DisplayName == "Korean (EUC)" ).GetEncoding( );