China Monday denied allegations that prisoners were being used for forced labour, after a British newspaper reported that a London schoolgirl found a message in a Christmas card claiming to be from inmates at Shanghai's Qingpu Prison.

Supermarket giant Tesco said at the weekend it had stopped production at a factory in China after one of its charity cards was found to contain a cry for help from a prisoner who made it, according to the Sunday Times newspaper.

Beijing has rebuffed the claims, which it said were "made up".

"I can tell you responsibly that, after seeking clarification from relevant departments, Shanghai Qingpu prison does not at all have ... forced labour by foreign convicts," said foreign ministry spokesman Geng Shuang at a regular press briefing in Beijing.

Geng also attacked former journalist Peter Humphrey who wrote the article and was himself detained in Qinqpu prison until his release in 2015, saying he had invented a "farce" to "hype himself up".

The note in the card asked the person who found it to contact Humphrey, who then took the story to the Sunday Times.

Supermarket giant Tesco said it had stopped production at a factory in China after one of its charity cards was found to contain a cry for help from a prisoner who made it, according to the Sunday Times newspaper
Supermarket giant Tesco said it had stopped production at a factory in China after one of its charity cards was found to contain a cry for help from a prisoner who made it, according to the Sunday Times newspaper Tolga Akmen / Tolga AKMEN

"We are foreign prisoners in Shanghai Qingpu Prison China," said the message, in a charity card featuring a kitten in a Santa hat.

"Forced to work against our will. Please help us and notify human rights organisation."

Humphrey told AFP he had never met the girl who found the card or her family, but when they got in touch and showed him a copy of the note, "I absolutely knew it was true, in my gut, because I know the handwriting."

He also dismissed Beijing's denial of forced labour as "lies".

"This is really completely to be expected, because nothing except lies ever comes back to the world when any such issue arises," he said.

Humphrey noted it was not the first time prisoners in China had got a message out this way.

Map locating locating Shanghai's Qingpu Prison.
Map locating locating Shanghai's Qingpu Prison. AFP / Laurence CHU

Qingpu Prison -- which has both domestic and international prisoners -- says on its website that holding foreign inmates from 40 nationalities "offers a lawful platform for cultural exchange."

The website shows several modern buildings, one with a glass facade, behind a green lawn and a blue sky and says it offers inmates "lessons on general law, morals, culture, skills and other basic education."

But this is in stark contrast to what former inmates say of their experiences in China's notoriously opaque prison system.

Humphrey said he believed the prisoners involved were working against their will.

"They don't mean that they are chained to a factory table and whipped. What they mean is that they have been put in a position where they are coerced," he said.

International companies are coming under mounting pressure to ensure their business in China does not involve any abuse of human rights.

Tesco -- which is Britain's largest retailer and the world's third-biggest supermarket chain -- said Sunday it "would never allow (prison labour) in our supply chain."

Humphrey said he did not hold Tesco responsible, if it were found to have used prison labour.

"China makes it impossible for a company to drill down right to the bottom of the supply chain to identify the small contractors," he said.

Separately the head of fund manager Fidelity International defended her firm's investment in Hikvision, a Chinese surveillance company accused of contributing to human rights abuses, in a BBC radio interview on Monday.

Hikvision's technology has allegedly been used to monitor the Uighur Muslim minority in China's Xinjiang region.