4
1
When I try to use Context.write(k,v) in MapReduce(using Java) to write data to a file ,I find the following contents in file(opened with vi, have :set list):
^@R^@u^@n^@^I1$
^@a^@c^@c^@e^@s^@s^@^I1$
^@d^@e^@f^@a^@u^@l^@t^@ 2$
^@o^@u^@t^@^I2$
^@p^@r^@o^@j^@e^@c^@t^@^I1$
^@t^@a^@s^@k^@^I1$
^@w^@i^@n^@d^@o^@w^@s^@^I1$
^@y^@o^@u^@r^@^I1$
What's the meaning of ^@
^I
and $
? Does ^I
mean \t
? I know that $
means the end of the line, but does it mean the enter key, just like \n
? If so, what's the difference between '$' and '^M' in vi?
Shouldn't vim automatically detect the encoding? Or does it only do that when there's a BOM? – pilona – 2013-12-11T02:43:54.813
@pilona: What gets detected is controlled by the
'fileencodings'
option that I've mentioned. – Ingo Karkat – 2013-12-11T07:58:52.270