The Söhne Mono font used for code has the exact same character for the number 0 and an uppercase O

As specified, it’s impossible to tell whether a character is a zero or an uppercased O with the font chosen for the code ChatGPT generates. It looks like there is a feature for this font to use a slashed zero, so ideally that would be used instead.

This was observed on Safari Version 16.5 (18615. on MacOS 13.4, in case that makes a difference

Example output from ChatGPT:


1 Like