What the OP describes has absolutely happened to me before, in both joke-character and out-of-place character flavors.

I enjoy playing D&D in settings that feel grounded in history and folklore, and to do that means playing characters with beliefs, flaws, and prejudices which fit with that source material. A lot of nasty, campaign-halting conflict has arisen from the people with "modern" characters bumping up against "medieval" ones. Not necessarily anyone's fault (although in some cases, it definitely has been), but I find it saddening when promising campaigns get undermined because people have different ideas about the sort of game they're playing.