in reply to Re^4: Character in 'b' format wrapped in unpack
in thread Character in 'b' format wrapped in unpack
When you do my $thing = chr( 12345 ); what does that "character" represent?Is a Chinese character? Or Sanskrit? Or Cyrillic?
Is it utf-8; utf16; utf32?
Is it big-endian or little-endian?
It's Unicode. It's HANGZHOU NUMERAL TWENTY, in fact. UTF-8, UTF-16 both represent unicode codepoints, but encode them differently.
When you concatenate a different string to it, the result might depend on the version of Perl. See unicode_strings.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Character in 'b' format wrapped in unpack
by BrowserUk (Patriarch) on Mar 29, 2015 at 23:04 UTC | |
by ikegami (Patriarch) on Mar 29, 2015 at 23:24 UTC |