in reply to How to generate random sequence of UTF-8 characters
A random sequence of all possible UTF-8 characters? That is going to be quire a huge string.
Anyway, don't worry about UTF-8. You must just create characters, which you can do with chr($code), where $code is an integer, a valid UNICODE character code point, which is basically any value between 0 and 0x10FFFF — except some of those will represent unprintable characters, such as control characters, and you probably don't want those.
Let Perl worry about converting it to UTF-8.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to generate random sequence of UTF-8 characters
by ted.byers (Monk) on Dec 20, 2012 at 20:33 UTC | |
by bart (Canon) on Dec 21, 2012 at 12:28 UTC |
In Section
Seekers of Perl Wisdom