I want to create a program that adds subtitles. I try to import a .srt file using the Stream Reader but it doesn't import characters like Greeks. Is there another way to import it?
You read text files with a StreamReader, plain and simple. You can specify the character encoding when you create a StreamReader, so you probably have to specify Unicode or UTF8 or something to be able to read Greek characters.
Create a StreamReader using a constructor that allows you to specify an Encoding object as a parameter. You don't need any help with that as Intellisense will tell you everything you need to know. Just try various encodings until you find one that works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.