> that Chinese are extremely patriotic
Like in most countries where education is tightly controlled by the government, patriotism is a result of state propaganda.
> how "the foreign powers" treated them in the past.
The worst thing that happened to Chinese was not the way foreign powers treated them, but what came after under their own ruling party.