Problema printing unicode

2 views
Skip to first unread message

gamo

unread,
Feb 6, 2022, 11:27:45 AMFeb 6
to

Dear masters:

use 5.032;
use utf8;


say OUT "\x{U+2622}"; # going postal

Gives me:

Non-hex character 'U' terminates \x early. Resolved as "\x{00}" at
qrfile.pl line 11.

And the QR created is unreadable.

Thanks in advance.


--
http://gamo.sdf-eu.org/
perl -E 'say "Error: Why did you think before study or the reverse?"'

Tony Mountifield

unread,
Feb 6, 2022, 1:19:31 PMFeb 6
to
In article <stostp$fek$1...@gioia.aioe.org>, gamo <ga...@telecable.es> wrote:
>
> Dear masters:
>
> use 5.032;
> use utf8;
>
>
> say OUT "\x{U+2622}"; # going postal
>
> Gives me:
>
> Non-hex character 'U' terminates \x early. Resolved as "\x{00}" at
> qrfile.pl line 11.
>
> And the QR created is unreadable.
>
> Thanks in advance.

You don't need the U+. Just do:

say OUT "\x{2622}"; # going postal

Cheers
Tony
--
Tony Mountifield
Work: to...@softins.co.uk - http://www.softins.co.uk
Play: to...@mountifield.org - http://tony.mountifield.org

gamo

unread,
Feb 6, 2022, 3:40:44 PMFeb 6
to
El 6/2/22 a las 19:19, Tony Mountifield escribió:
> In article <stostp$fek$1...@gioia.aioe.org>, gamo <ga...@telecable.es> wrote:
>>
>> Dear masters:
>>
>> use 5.032;
>> use utf8;
>>
>>
>> say OUT "\x{U+2622}"; # going postal
>>
>> Gives me:
>>
>> Non-hex character 'U' terminates \x early. Resolved as "\x{00}" at
>> qrfile.pl line 11.
>>
>> And the QR created is unreadable.
>>
>> Thanks in advance.
>
> You don't need the U+. Just do:
>
> say OUT "\x{2622}"; # going postal
>
> Cheers
> Tony

Thanks!

say "\x1F44F";


--
http://gamo.sdf-eu.org/
perl -E 'say "Error: As there is no problem, you must do maintenance ."'
Reply all
Reply to author
Forward
0 new messages