I run a program with two 'same' test files separately but got two different results.
First test file a.txt
of 16 bytes leads to a right result, but second test file b.txt
of 14 bytes causes the wrong result.
I saved both of them in encoding UTF-8
.
Both of them consist of the following three lines when opened with Sublime Text in encoding UTF-8
:
p cnf 1 1
1 0
However, they are different when opened with Sublime Text in encoding Hexadecimal:
a.txt
(16 bytes):
7020 636e 6620 3120 310d 0a31 2030 0d0a
b.txt
(14 bytes):
7020 636e 6620 3120 310a 3120 300a
Why they are different? How can I turn b.txt
to a.txt
?