In all of his novels Flaubert associates the Orient with the escapism of sexual fantasy. Emma Bovary and Frederic Moreau pine for what in their drab (or harried) bourgeois lives they do not have, and what they realize they want to comes easily to their daydreams packed inside Oriental Cliches: harems, princesses, princes, slaves, veils, dancing girls and boys, sherbets, ointments, and so on. The repertoire is familiar, not so much because it reminds us of Flaubert's own voyages in and obsession with the Orient, but because, once again, the association is made between the Orient and the freedom of licentious sex. We may as well recognize that for nineteenth-century Europe, with its increasing embourgeoisement, sex had been institutionalized to a very considerable degree. On the one hand, there was no such thing as "free" sex, and on the other, sex in society entailed a web of legal, moral, even political and economic obligations of a detailed and certainly encumbering sort. Just as the various colonial possessions—quite apart from their economic benefit to metropolitan Europe—were useful as places to send wayward sons, superfluous populations of delinquents, poor people, and other undesirables, so the Orient was a place where one could look for sexual experience unobtainable in Europe. Virtually no European writer who wrote on or traveled to the Orient in the period after 1800 exempted himself or herself from this quest: Flaubert, Nerval, "Dirty Dick" Burton, and Lane are only the most notable. In the twentieth century one thinks of Gide, Conrad, Maugham, and dozens of others. What they looked for often—correctly, I think—was a different type of sexuality, perhaps more libertine and less guilt ridden; but even that quest, if repeated by enough people, could (and did) become as regulated and uniform as learning itself.
It is frequently said that stereotypes are based on some aspect of reality. In many cases, however, the reality that stereotypes are based upon reflect less on the stereotyped subject and more on the person who holds this stereotype. The notion of the Orient as a real alternative to 'our' sexually-repressive systems seems to reflect deeply-held desires rather than empirically-based generalizations.
Perhaps the European Orientalist and modern Western Asiaphile hope to find in Asia a socially-acceptable escape from social obligation.