mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-26 18:42:42 +01:00
perl: add $unpacker->utf8 mode, decoding strings as UTF-8.
This commit is contained in:
@@ -24,6 +24,17 @@ This is a streaming deserializer for messagepack.
|
||||
|
||||
creates a new instance of stream deserializer.
|
||||
|
||||
=item $up->utf8([$bool])
|
||||
|
||||
sets utf8 mode. true if I<$bool> is omitted.
|
||||
returns I<$up> itself.
|
||||
|
||||
If utf8 mode is enabled, strings will be decoded as UTF-8.
|
||||
|
||||
=item my $ret = $up->get_utf8()
|
||||
|
||||
returns the utf8 mode flag of I<$up>.
|
||||
|
||||
=item my $ret = $up->execute($data, $offset);
|
||||
|
||||
=item my $ret = $up->execute_limit($data, $offset, $limit)
|
||||
|
||||
Reference in New Issue
Block a user