Replacing a little diamond with a question mark UT8 encoding
How to recognize and replace little diamond with a question mark character in code, Review the example.txt file attachment and you notice a weird character once you read the file into memory, when you open the text file its a dash, but when you read in the text file its a little diamond with a question mark
SenthilkumarPosted Apr 4, 2012, 2:37 AM
you need to follow the encoding while reading the content from the file.
This will show the content from your file as it is.
Hope this will help you.
Amr MohallelPosted Jun 18, 2013, 1:22 PM
I Signed up in this website just to say a BIG THANK YOU!
Best regards!
David SmithPosted Apr 4, 2012, 7:29 AM
sr = new StreamReader(pDelFileName, System.Text.Encoding.Default, true);