How to force diff to compare binary files

Use theĀ --text flag to force diff to compare files in text mode even if it thinks they are binary files:

diff --text a.txt b.txt