I have a character who's a devout Catholic (he's one of my favorites, actually), and I'm a raging atheist.
I have a character who's the single-handed scum of the earth (by which I mean, a raging paedo), but I will personally punch out anyone who even insinuates that I think or behaves like him.
I have characters that are religious, ones that aren't, ones that are terrible people, ones that have philosophical views, ones that are apathetic, ones that would vote left, right, or middle in the next election. Some will shoot the first person to look at them funny, some are pacifists, and some are in the middle. Some are full-on NietzcheWannabes
, and some believe in sunshine and flowers and brightness.
Don't take my characters' views and behavior as my own.
I personally think it's boring when every single character shares the person's religious beliefs, philosophical beliefs, favorite foods, and would all act just like the author.
That, and it's just too damn fun to write villains.