Catman..._encode(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Catmandu::Fix::uri_encode β€” bestie, it percent-encodes a URI ✨

Like, it takes your cute lil string and turns it into that %E2%9C%A8-core URL-safe format, no cap 🫢


🌸 SYNOPSIS 🌸

    # 'cafΓ©' => '3%A9'
    uri_encode(place)

    # 'ὁ Ο„αΏΆΞ½ Πέρσων βασιλΡύς' => '%E1%BD%81+%CF%84%E1%BF%B6%CE%BD+%CE%A0%CE%AD%CF%81%CF%83%CF%89%CE%BD+%CE%B2%CE%B1%CF%83%CE%B9%CE%BB%CE%B5%CF%8D%CF%82'
    uri_encode(title)

So basically you drop uri_encode(*field*) into your Fix file, and it takes whatever's in that field and percent-encodes it πŸ’… The examples up there are giving exactly what you get out β€” like, cafΓ© becomes 3%A9, and that whole ancient Greek phrase about the king of the Persians turns into a whole wall of %XX codes, periodt πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Go be nosy, bestie, these are the sibling pages you'll wanna peek at:

  • Catmandu::Fix β€” the whole Fix ecosystem, the mothership πŸ›Έ
  • Catmandu::Fix::uri_decode β€” the reverse vibe, if you ever need to un-encode πŸ¦‹
  • URI::Escape β€” the actual machinery underneath doing the heavy lifting πŸ’ͺ

That's literally the whole page β€” short, sweet, and it ate πŸ’…βœ¨

Sign-off moment: this one's from perl v5.40.1, dated 2026-01-24, and it lives in the User Contributed Perl Documentation corner of the manual-verse πŸŽ€ Take care of her, she's iconic πŸ’–

πŸ“¦ where this page comes from