hg handles text file in unicode as binary file
gabor at nekomancer.net
Sun Mar 30 13:58:12 CDT 2008
ibn at ikeeper.cn wrote:
> hg handles text file in unicode as binary file ? no diff or cat ?
you have to define what you mean by "unicode".
for example, as a test, i took some japanese text, and put it into a
textfile, encoded in UTF-8.
then i committed it, and changed it, and then a 'hg diff'
correctly showed the diff.
but when i repeated this test with the text in UTF-16, then it showed up
as a binary file.
so i recommend to you to have the data in UTF-8. it should work then.
More information about the Mercurial