Unaccent(3pm)

🌸 Unaccent(3pm) β€” the whole vibe 🌸

Hiii bestie πŸ’– so this page lives in User Contributed Perl Documentation (that's the manual section it's chillin' in), and ngl it's a short one but it's so useful. It's all about Text::Unaccent, the module that yeets accents off your strings. Let's get into it πŸ¦‹


✨ NAME ✨

Text::Unaccent β€” Remove accents from a string. periodt πŸ’…


✨ SYNOPSIS ✨

okay here's the whole thing at a glance, no cap:

use Text::Unaccent;

$unaccented = unac_string($charset, $string);
$unaccented = unac_string_utf16($string);
$version = unac_version();
unac_debug($level);

✨ DESCRIPTION ✨

So Text::Unaccent is a module that removes accents from a string. That's the whole plot, and honestly? main character energy πŸ‘‘

Here's the tea on how unac_string works: it converts the input string from whatever charset you specified over to UTF-16, and then it calls unac_string_utf16 to hand back the unaccented equivalent. The conversion from and to UTF-16 is done with iconv(1). (Yes, both directions, she does the round trip πŸ’–)


✨ METHODS ✨

$unaccented = unac_string($charset, $string)

Return the unaccented equivalent of the string $string. The character set of $string is specified by the $charset argument, and the returned string is coded using that same character set. Valid values for the $charset argument are character sets known by iconv(1). Under GNU/Linux, try iconv -l for a complete list β€” that's the plug, bestie 🫢

$unaccented = unac_string_utf16($string)

Return the unaccented equivalent of the string $string. The character set of $string must be UTF-16 β€” no exceptions, she's picky and honestly she's allowed to be πŸ™ˆ

$version = unac_version()

Return the version of the unac library that this perl module is using. Cute lil version check, love that for you ✨

unac_debug($level)

Set the debug level. Messages are printed on stderr. Possible debug levels are:

okay so the original page says "Possible debug levels are:" and then… lists absolutely nothing 😭 like the list is just empty, fr fr. So that's what I'm passing along to you: whatever levels exist, this page does not enumerate them. Keep every detail? Yes. There are zero details here to keep. πŸ’€

✨ AUTHOR ✨

Loic Dachary (loic@senga.org) http://www.senga.org/unac/ 🌈


✨ SEE ALSO ✨


✨ POD ERRORS ✨

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

Around line 101:

You forgot a '=back' before '=head1'
not the =back erasure 😭 the POD police caught it, we're just reporting it faithfully, no notes πŸ’œ

and that's the whole page, bestie! this one came to you from perl v5.42.3, dated 2026-08-19, under the name Unaccent(3pm). slay, go unaccent something πŸ”₯πŸ’–

πŸ“¦ where this page comes from