How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Quick and dirty string dumping

calendar_today April 9, 2026 person mauke domain perl

Sometimes, when you’re trying to debug encoding issues in Perl code, it is useful to quickly get an idea of what code points Perl thinks are in your string. The straightforward approach of say $string (or print $string ) isn’t a good way to look at an unknown string: The results depend on what encoding layers (if any) are set on STDOUT and how your terminal renders the resulting bytes. In some cases, “\xe2\x82\xac” (a three-character string, UTF-8 bytes) may look identical to “\x{20ac}” (a one-character string, Unicode text) when printed, for example. (And some control characters are…

open_in_new Read original post