When reading an excel file, there is information that contains hyphens "-"
and when going through the rows and reaching one that has a hyphen it shows it as �
, so when looking for none matches and does not perform any processing that I have.
Like what method can I use to remove the script when reading the rows, or replace it, some effective method.
I tried to use this string[] data = line.Split('-');
but it didn't work.
Could you help
Replace()
him while iterating the lines?something like being
then you remove the
-
and leave the spacestring.Replace(String, String)