Timeline for Diff identifying html files as binary
Current License: CC BY-SA 4.0
        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 catthem to the terminal. You can try withdiff <(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 -ato force comparison as text. Using HTML entities instead of special characters might also help, e.g.ä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 |