You need to get a proper browser. A browser that "beautifies" characters by replacing them with different characters is in no way fit for use in development. Since you obviously work on Mac OS, I've checked Safari, and it actually does have a feature called "smart quotes" and several other subsitutions. That's great for fancy looks (which seems to be the most important thing in the Apple world), but you cannot check your code with that.
I think there's a misunderstanding regarding font rendering. As I already tried to explain earlier, the straight single quote is a specific, unique character. It may look
differently in different fonts, but it's always the same character. So if this was just about rendering
, there wouldn't be any problem. Because rendering only affects the looks of the character, it does not change the character itself. But what your browser actually does is replace
the quotes with completely different characters. In other words, it messes with the page content.
When experiencing problems like that, it's a good opportunity to get familiar with more lowlevel ways of debugging. For example, MySQL has a query log
, which is a much more reliable source than any browser output.