creating utf-8 random strings - Mailing list pgsql-novice

From Jean-Yves F. Barbier
Subject creating utf-8 random strings
Date
Msg-id 20111225161618.2efd00f9@anubis.defcon1
Whole thread Raw
Responses Re: creating utf-8 random strings
List pgsql-novice
Hi list,

In order to make tests I must create strings [20-32] & [32-64]
characters long with accentuated characters.

I use a very old piece of code (not even accurated, but sufficient
until now), however it don't give me lower-case nor accentuated :
for b in range(random.randint(48, 64)):
    chiffre = random.randint(65, 88)
    myStr += unichr(chiffre)

Does somebody has such code?

JY
--

pgsql-novice by date:

Previous
From: Takahiro Noda
Date:
Subject: Re: The exact timing at which CHECK constraints are checked
Next
From: Thangalin
Date:
Subject: Map table data to XPath expressions