Detecting Text Encoding for StreamReader(west-wind.com)
submitted by
rstrahl(7226) 4 years, 5 months ago
Reading Text files with proper encoding and byte order marks can be a bit of a pain when using a StreamReader as there's no detection of no byte order mark that defaults to UTF-8 which is usually incorrect. Here are a few thoughts on explicitly detecting BOM settings and getting a corresponding Encoding.
|category: C#
|Views: 15
tags:
C# another
Everyones tags:
Your Tags: