You can use the Latin1Encoding class in C# to convert a string to ISO-8859-1 (Latin-1) encoding and then convert it back to a string and compare it with the original string to test if the encoding conversion was correct.
main.cs647 chars15 lines
gistlibby LogSnag