in reply to Re^2: PDF::API2 printing non ascii characters
in thread PDF::API2 printing non ascii characters
Hello again Anonymous Monk,
In this case you can use URI::Escape. See sample bellow:
#!/usr/bin/perl use strict; use warnings; use URI::Escape; use feature 'say'; my $str = "Character one: ω character two: ∞"; my $hex_code = uri_escape( $str ); say $hex_code; my $string = uri_unescape( $hex_code ); say $string; __END__ $ perl test.pl Character%20one%3A%20%CF%89%20character%20two%3A%20%E2%88%9E Character one: ω character two: ∞
Hope this helps, BR.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: PDF::API2 printing non ascii characters
by vr (Curate) on Mar 13, 2018 at 16:21 UTC | |
by thanos1983 (Parson) on Mar 14, 2018 at 12:16 UTC | |
by Anonymous Monk on Mar 13, 2018 at 16:38 UTC | |
|
Re^4: PDF::API2 printing non ascii characters
by Anonymous Monk on Mar 13, 2018 at 16:22 UTC | |
by thanos1983 (Parson) on Mar 14, 2018 at 09:44 UTC | |
by Anonymous Monk on Mar 14, 2018 at 09:54 UTC |