http://qs321.pair.com?node_id=1227705


in reply to Re^2: Handling utf-8 characters when scraping
in thread Handling utf-8 characters when scraping

I don't want the ellipsis getting to get encoded into \x{2026}.

That's Data::Dumper doing that, and I don't think there's a way to turn it off. Data::Dump seems to be similar. Data::Printer does seem to do what you want:

use warnings; use strict; use open qw/:std :utf8/; use Data::Printer { print_escapes=>1 }; my $str = "(\N{U+2026}\n)"; p $str;

Gives me: "(\n)"

... although on the other hand, these modules are all debugging tools, and not really tools for generating consistently formatted output. For that, other formats are better - if you could explain the application, then perhaps we could make other suggestions.