UTF8simple(3)

πŸ“¦ version 1.06, in arch rolling

πŸ’– NAME πŸ’–

okay so bestie, welcome to the UTF8simple(3) page β€” it's a User Contributed Perl Documentation moment. The module is Unicode::UTF8simple, and it's literally all about Conversions to/from UTF8 from/to charactersets. πŸ’…


✨ SYNOPSIS ✨

Here's the whole flow, copied exactly because we do not mess with code, periodt:

        use Unicode::UTF8simple;

        my $uref = new Unicode::UTF8simple;

        #convert a string (here: schΓΆn) to a utf8 byte string
        my $utf8string=$uref->toUTF8("iso-8859-1","schΓΆn");

        #convert a string from utf-8 to specified encoding
        my $string=$uref->fromUTF8("iso-8859-1",$utf8string);

        #get a lit of supported encodings:
        my @listOfNames=$uref->enclist();

        #check if a given encoding (here gb2312) is supported
        if ($uref->encsup('gb2312')){ ... }

🌸 DESCRIPTION 🌸

Okay so Unicode::UTF8simple provides UTF-8 conversion for perl versions from 5.00 and up. It was mainly written for use with perl 5.00 to 5.6.0 because those perl versions do not support Unicode::MapUTF8 or Encode.

It's written in plain perl (no C code) and will work with any Perl 5 version. It is just slightly slower than Encode. Ngl that's the vibe, and it's giving lowkey iconic. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Guido Socher (guido at linuxfocus.org)


🫠 POD ERRORS 🫠

Hey! The above document had some coding errors, which are explained below:

Around line 40:

Non-ASCII character seen before =encoding in 'schΓΆn)'. Assuming CP1252

This page came from perl v5.38.2, dated 2024-07-13 β€” bye bestie, slay your encodings! πŸ’œ

πŸ“¦ where this page comes from