I made a prime number generating program in C++ to get some practise. It worked fine and outputted the correct numbers. But when I wanted to open the .txt file with Editor (my standard program for .txt files) it displayed me a bunch of chinese characters. I checked the binary codes and they were the ASCII values of the correct prime numbers but Editor interpreted it as Chinese characters. Also: For some reason Wordpad doesn't. As an example: the first few characters, that should be the first few prime numers were: ′″‵??ㄠ″?ㄠ??㈠??????″??. Anyone knows how to fix that and why that is like that?
1.4m articles
1.4m replys
5 comments
57.0k users