|
From: John B. <joh...@ho...> - 2013-02-14 21:55:24
|
> 2013/2/13 John Brown > I did not fully understand your test cases, but I do not see where your > tests show that MSYS does not convert characters. > > Renato Silva > Hopefully you did not understand because I didn't either @@. But I have > corrected it and I hope you do now. I was wondering if something was wrong with me. I am glad to see that I am OK. > John, as for your file format, ok I understand it better > now, but it's still just crazy to me. I can't see much sense in their > triple-digit thing, for example. Neither do I, but I am sure of their method. I observed the pattern when I calculated the total that I could not see based on other numbers that were always clear. As for the permille, it does not seem to have any numerical value. It may be there just for decoration. In any case, other than the triple-digits, the portions of the file that I need can be easily extracted using regular expressions. I can search-and-replace the triple-digits, again using regular expressions. > Actually, iconv gives an error instead, due to the permille. ... > > >iconv -f latin1 -t cp850 original_bytes.txt > iconv: test.txt:1:1: cannot convert > I got that too. I did not bother to report it because I was satisfied - I managed to make MSYS display the same output as Notepad, thanks to Erwin Waterlander. I was also tired. And thanks for the tip about ls --show-control-chars. Regards, John Brown. |