Pew Research Center found that gender and race played a huge role in whether or not respondents thought that publishing the cartoons was acceptable