#!/usr/bin/perl use Encode; my $s = "This line contains 0xC30x86n exotic character."; $s =~ s/0x([\da-fA-F]{2})/chr(hex($1))/ge; my $u = decode('UTF-8', $s);
$u would then contain a Perl character/unicode string that you can encode to whatever format you need for the HTML or PDF output.
In reply to Re: Evaluating UTF codes in a file
by almut
in thread Evaluating UTF codes in a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |