System.Text.Encoding.GetEncoding () returns an encoding given its name or code page. Is there a way to enumerate available encodings, to display them in the UI?
This works, but way too slow :) for (int i = -100; i < 65535; i++) { try { System.Text.Encoding e = System.Text.Encoding.GetEncoding (i); Console.WriteLine ("{0},{1},{2}", e.CodePage, e.EncodingName, e.BodyName); } catch (SystemException x) { } } -kkm You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.