I face this with German too, people might speak a dialect or have a local accent but are also familiar with Hochdeutsch.
English doesn't have a standard body as far as I know, and pronunciation vary a lot between different countries, so that may be different.
Not that well, at least for me, I think I know most cases where it changes from my local accent, but I would struggle to emit the "correct" sound. It wasn't that long ago that I learnt that "é, ais, er, et, ez" were not supposed to be pronounced the same, and I cannot tell how each one is supposed to be pronounced. I would say people from Switzerland are probably more aware of the difference, because it is acknowledged that it is slightly different, whereas I have never heard anyone tell me that I wasn't learning "proper/standard" French and that it's "supposed" to be pronounced differently.
Btw, I was 16 when I learned that "un" (like in the number 1), "en", and "an" have different pronunciations and that I pronounced them incorrectly my entire life! I still have to force myself from time to time to make a clear distinction.
It'd be wherever it wouldn't be a dialect, which to my mind is obviously british english. Other variations are regional dialects born of distance and time.