in reply to What is the convert rule of utf8::upgrade?
utf8::upgrade never converts to UTF-8. You want utf8::encode for that.
In fact, utf8::upgrade and utf8::downgrade don't change the string at all. They change its internal storage format. ("representation", in the docs.) They are useful for workaround around bugs in Perl and XS modules, but they are not encoding or decoding tools.
|
|---|