Browse - Programming Tips - How can I decode UTF-8 characters with perl?

Date: 2017oct16
Language: perl

Q.  How can I decode UTF-8 characters with perl?

A.  Use the `Encode` package.

use utf8; use Encode; my($in) = 'some utf-8 letters'; my(@a) = split(//, decode('utf-8', $in));
@a will hold the letters of the string.