Cannot see None English characters (ANSI Encoded) in .Net controls when loading form files

Do you have problems with showing non English characters in .net controls ? If you have seen non English characters are shown as "?" in .Net controls when you load contents from files. That is because of the encoding issue. You have use "Encoding.Default" to solve this issue when you read from file.

File.ReadAllLines(filename,Encoding.Default)

Comments

Popular posts from this blog

Embedding PowerBI with ASP.NET Core 2 and Angular(2,4,5)

Handling Exit Event of Console Application in C#

CSS text-overflow ellipsis in the beginning of the the text - Left Ellipsis using CSS in a Flex box