In the case that thanos1983's reply is not what you're looking for, maybe showing us some code would help us understand the situation better.
I think that you currently have code like the following:
#!perl -w use strict; my $hardcoded_string_in_perl = "\x{0052}\x{0044}\x{0024}"; my $string_as_read_from_database = '\x{0052}\x{0044}\x{0024}'; print $hardcoded_string_in_perl; # RDS print $string_as_read_from_database; # \x{0052}\x{0044}\x{0024} print_to_pdf( $hardcoded_string_in_perl ); # works and shows the corre +ct characters in the PDF print_to_pdf( $string_as_read_from_database ); # works and shows the c +orrect characters in the PDF
If that is true, you will likely just need to convert the backslashed escape sequences to Perl characters. For example using something like the following subroutine:
sub unescape { my( $str ) = @_; $str =~ s!\\x\{([0-9a-f]{4})\}!chr(hex $1)!ge; $str }; print unescape('\x{0052}\x{0044}\x{0024}');
In reply to Re: Print unicode strings to pdf
by Corion
in thread Print unicode strings to pdf
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |