creating utf-8 random strings

Поиск
Список
Период
Сортировка
От Jean-Yves F. Barbier
Тема creating utf-8 random strings
Дата
Msg-id 20111225161618.2efd00f9@anubis.defcon1
обсуждение исходный текст
Ответы Re: creating utf-8 random strings  (Michael Wood <esiotrot@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Takahiro Noda
Дата:
Сообщение: Re: The exact timing at which CHECK constraints are checked
Следующее
От: Thangalin
Дата:
Сообщение: Map table data to XPath expressions