Apr-10-2018, 01:32 PM
(Apr-10-2018, 01:02 PM)garikhgh0 Wrote: [ -> ]id there a method to show the hidden symbols, which cause the problem.The problem comes from the fact that your program reads the file by assuming that it is a unicode file encoded in the utf8 encoding. If it is a file encoded differently, it doesn't work. In your case, it seems that the lines are ASCII characters (apart from this strange \xff). It is compatible with the utf8 encoding. There is no way to show the symbols that "cause the problem" because there are many different situations: if your file is written in japanese or korean for example, it may be encoded with a more suitable encoding and your efforts with utf8 will fail.