J
Joe Gottman
I have an application that opens and reads a text file using an
ifstream. Recently one or two users have entered the name of a Unicode
file, which caused my program to crash because it couldn’t handle it.
Is there any way to determine after opening a file whether or not it
contains Unicode characters? I don’t want to read the Unicode, I just
want to be able to detect it so I can throw an exception.
Joe Gottman
ifstream. Recently one or two users have entered the name of a Unicode
file, which caused my program to crash because it couldn’t handle it.
Is there any way to determine after opening a file whether or not it
contains Unicode characters? I don’t want to read the Unicode, I just
want to be able to detect it so I can throw an exception.
Joe Gottman