Mon Nov 28 17:49:13 2016: Request 119022 was acted upon. Transaction: Correspondence added by PRBRENAN Queue: Wx Subject: DrawText of unicode string Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: prbre...@cpan.org Status: open Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=119022 >
Encoding the string as utf8 does not seem to improve the situation as can be seen at line 3 in the following code and the corresponding line 3 of the attached screen shot: $g->DrawText("Hello", 400, 400); $g->DrawText("𝝰𝝱𝝲𝝱𝝰", 400, 450); $g->DrawText(encode('UTF-8', "𝝰𝝱𝝲𝝱𝝰"), 400, 500); On Mon Nov 28 16:31:07 2016, jvrom...@squirrel.nl wrote: > On Mon, 28 Nov 2016 15:41:01 -0500, "Philip R Brenan via RT" > <bug...@rt.cpan.org> wrote: > > > my $f = Wx::Font->new("Noto Mono 24"); > > my $g = Wx::PaintDC->new($panel); > > $g->SetFont($font); > > $g->DrawText("Hello", 400, 400); > > $g->DrawText("𝝰𝝱𝝲𝝱𝝰", 400, 450); > > You did 'use utf8', I assume? > > -- Johan