UTF8simple(3)
π 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
- arch rolling: perl-unicode-utf8simple 1.06-9 Β· GPL AND PerlArtistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms