Skip to main content
8 events
when toggle format what by license comment
Oct 29, 2019 at 16:31 vote accept makeMonday
Oct 15, 2019 at 20:22 answer added Gilles 'SO- stop being evil' timeline score: 3
Oct 15, 2019 at 17:59 comment added user313992 @Bodo No, diff doesn't care about "non-ascii characters". Try it yourself diff <(printf '\xff\n') <(printf '\xfe\n')
Oct 15, 2019 at 17:57 comment added user313992 Your files are probably encoded in UTF-16 and contain NUL bytes, which don't show up when you cat them to the terminal. You can try with diff <(iconv -f utf-16 index.html) <(iconv -f utf-16 index3.html).
Oct 15, 2019 at 17:04 comment added Bodo Probably your HTML file contains non-ascii characters. If you use a GNU diff, e.g. on Linux, you can use option -a to force comparison as text. Using HTML entities instead of special characters might also help, e.g. &auml; instead of ä etc.
Oct 15, 2019 at 16:45 comment added Jeff Schaller See also a workaround in unix.stackexchange.com/a/59859/117549
Oct 15, 2019 at 16:44 comment added Jeff Schaller Related (not an answer): unix.stackexchange.com/questions/469483/…
Oct 15, 2019 at 16:40 history asked makeMonday CC BY-SA 4.0