Hans Christian Andersen was a nineteenth-century Danish writer who wrote fairy tales about various events. In his short fairy tale "What the Moon Saw", in the part named "First Evening" he writes,
“Last night”, I’m quoting the Moon’s own words, “I was gliding through the cloudless Indian sky. My face was mirrored in the waters of Ganges, and my beams strove …. Forth from thicket tripped a Hindoo maid, light as gazelle, beautiful as Eve. Airy and and ethereal as a vision, and yet sharply defined amid the surrounding shadow, stood this daughter of Hindustan
What was the reason for Hans for specifically choosing India for this story? In the nineteenth century, the Dutch didn’t have any colonies in India; a few centuries ago they agreed with British on a deal and left India to take up Indonesia and some parts of Malay Archipelago.
He even mentions a very little know custom of India:
She knew that if the lamp continued to burn so long as she could keep it in sight, her betrothed was still alive; but if the lamp was suddenly extinguished, he was dead.
He mentions one of the main Hindu Gods:
She thought only of Bramah and of her betrothed.
I’m looking for facts of how Andersen knew so much about India.