For what it's worth, I'm in France and it's common knowledge here that China invented gunpowder. I don't think I've ever heard someone saying Europe did.
The US is a big country, results vary wildly. Taking a straw poll of the office everyone replied "China" as the inventor.
Though I wouldn't be surprised if gunpowder was discovered independently in Europe, or at least partly so because nobody walked out of China with a recipe for it.