Opened 7 years ago

Closed 7 years ago

#1408 closed enhancement (not relevant)

How to examine/inspect Unicode strings?

Reported by: szabgab Owned by:
Priority: minor Milestone:
Component: Debugger for Perl 5 Version: 0.86
Keywords: Cc:

Attachments (1)

test_bin.png (147.0 KB) - added by bowtie 7 years ago.
just for fun :)

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 years ago by bowtie

  • Version changed from 0.94 to 0.86


I have a project dealing with Unicode text manipulation. I am using Perl 5.014 and the Padre debugger v 0.86 (that's the latest Padre version for ActiveState Perl distribution).

In Padre, it's important to be able to view (examine/inspect) the program variables in the "Debugger" pane at the right hand side, especially the Unicode strings. It turns out that the debugger pane does not show the strings in their character glyphs. For scalars, it show gibberish, and for arrays, it shows them in the "\x{05FF} notation, which is cryptic and un-intuitive.

Is there a way to make Padre show the strings in the right glyphs? Going: "View -> Language" and changing the language doesn't help. It affects only the menus.
Note that in the editor, Unicode literals are shown right.

I am running Windows 7 x64.
I do have these in the program:

use utf8;
binmode(STDOUT, ":unix:utf8");
binmode $DB::OUT, ':unix:utf8' if $DB::OUT;

comment:2 Changed 7 years ago by bowtie

  • Priority changed from major to minor
  • Type changed from defect to enhancement

Padre 0.86 and Debug1 with Perl 5.014000 Humm!

I thought Unicode not fixed until Perl 5.014002.

I will take a look at this against Debug2 when a test sample is provided with comments.

comment:3 Changed 7 years ago by bowtie

  • Resolution set to not relevant
  • Status changed from new to closed

Ok so have you viewed the answer on

and perlmonks

so the author should have used the following form

use feature 'unicode_strings';

open ( $fh, "<:encoding(UTF-8)", $file ) or die $!;

so I ask myself what has this to do with Padre, and Debug2.

nothing :)

O and as for viewing hex code (entities), you could try a hex editor like GHex.

Changed 7 years ago by bowtie

just for fun :)

Note: See TracTickets for help on using tickets.