FILE PHOTO: Eritrean migrants receive food after arriving by plane from Italy at the first registration camp in Erding near Munich, Germany, November 15, 2016. REUTERS/Michael Dalder

BERLIN (Reuters) - A majority of Europeans support taking in refugees although many disapprove of how the European Union has handled a record influx of migrants that peaked three years ago, according to a new survey by the Pew Research Center.

At a time when anger over migration has fueled a rise in eurosceptic, anti-immigrant parties across Europe, the survey, conducted between May and July of this year, showed that over 80 percent of adults in Spain, the Netherlands, Germany and Sweden favor taking in refugees who are fleeing violence and war.

At over 70 percent, support was also high in France and the United Kingdom. Even in Greece and Italy, the main entry points for migrants into Europe, the survey showed that a majority of respondents still favor accepting refugees.

The European country with the lowest acceptance was Hungary, at 32 percent, well below Poland at 49 percent.

The survey also showed many Europeans are critical of how the EU has handled the influx.

The crisis of 2015 exposed deep divisions within the EU, with frontline countries like Italy and Greece frustrated with eastern European countries that have refused to accept refugees, and others, including Sweden and Germany, taking on a disproportionately large share.

Some 92 percent of Greeks, 78 percent of Italians and 66 percent of Germans and British expressed disapproval with the EU’s handling of the issue.

Outside of Europe, Mexico, Canada and Australia all showed high refugee acceptance rates of over 70 percent, while the United States and Japan both stood at 66 percent.