jamesc has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I've been surfing around and found lot's of questions like this but no answers. I've read a UTF8 string out of an LDAP database and Perl thinks it's just a normal string with each character in 1 byte (i.e. 10 chars long, instead of the actual 5 characters). I give up ... how do I tell Perl to recognise it as utf8 (I'm using Perl 5.60)? Thanks folks!
  • Comment on making perl recognize a series of bytes as utf8 string.

Replies are listed 'Best First'.
Re: making perl recognize a series of bytes as utf8 string.
by ChOas (Curate) on Jan 05, 2001 at 19:09 UTC
    Check out Unicode::MapUTF8 on CPAN....
    GreetZ!
      ChOas

    print "profeth still\n" if /bird|devil/;
Re: making perl recognize a series of bytes as utf8 string.
by jamesc (Initiate) on Jan 08, 2001 at 15:20 UTC
    I found a module written by Marc Lehmann? use Convert::Scalar; Seems to have the functionality I need. thanks.