AlfredoQuintero
Lifetime Supporting Member
Hello. I have a problem which may be common in this part of the world. My CoDeSys program reads data from a text file that I generate from the program itself with a system call for Windows text console in the form of "dir <PATH> /B > <PATH>dir_list.txt", which generates a text file with the filenames in that directory, separated by line feed characters. If the filenames are pure ASCII everything is fine. But if the filenames contain Asian fonts (in this case Japanese fonts), then what I read from the program is garbage display, as I show below.
Before I tell my customer that he can only use filenames in ASCII so I can continue with the development (and make him get quite grumpy), I though I would fire a question to the forum, to see if someone would be familiar wit this problem and could suggest a fix, in which case I will be as ever very grateful.
Thanks.
Before I tell my customer that he can only use filenames in ASCII so I can continue with the development (and make him get quite grumpy), I though I would fire a question to the forum, to see if someone would be familiar wit this problem and could suggest a fix, in which case I will be as ever very grateful.
Thanks.