Git diff keeps showing non-UTF8 characters.
Suggestion from Make git diff show UTF8 encoded characters properly, I have tried setting export LESSCHARSET=UTF-8 in my .zshrc but it still does not work.
Git diff keeps showing non-UTF8 characters.
Suggestion from Make git diff show UTF8 encoded characters properly, I have tried setting export LESSCHARSET=UTF-8 in my .zshrc but it still does not work.
Those are color-setting codes. Either instruct your less to pass them through (via, e.g., -R as an option or R in the environment LESS setting) or disable colored diffs.
Git defaults to setting LESS="FRX" in the environment if no LESS setting is set yet. To make this fail you must be overriding the default, e.g., by providing your own LESS setting or by using command-line options.