CygNuS
Well-known member
I have a txt file that i have to read.
Unfortunately it is encoded in ANSI and it contains a special character 'Ø' which my streamreader (i've tried all encodings) simply won't read.
If i manually save my ANSI txt to UTF-8 encoding and try again, it works perfectly.
But i need to automate this, anyone has any idea how to convert an existing txt to another encoding? (problem is: I must be able to do that without having to read the contents or 'Ø' is lost)
Unfortunately it is encoded in ANSI and it contains a special character 'Ø' which my streamreader (i've tried all encodings) simply won't read.
If i manually save my ANSI txt to UTF-8 encoding and try again, it works perfectly.
But i need to automate this, anyone has any idea how to convert an existing txt to another encoding? (problem is: I must be able to do that without having to read the contents or 'Ø' is lost)