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.
Apparently, back in the 19th century people credited Berthold Schwarz [0] with the inventiom of gunpowder. I remember reading Beyond Good and Evil and reading in the preface that "the Germans invented gunpowder" and being rather puzzled, but it turns out that that was considered a fact at the time.
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.