Padre: how to check / check Unicode strings?

I have a project dedicated to text processing in Unicode. I am using Perl 5.014 and the Padre v 0.86 debugger (this is the latest version of Padre to distribute ActiveState Perl).

In Padra, it is important to be able to view (check / verify) program variables in the "Debugger" panel on the right side, especially Unicode strings. It turns out that the debugger panel does not display strings in its symbolic characters. For scalars, this shows gibberish, and for arrays, it shows them in the notation "\ x {05FF}", which is cryptic and unintuitive.

Is there a way to get Padres to show strings in the correct glyphs? Transition: "View → Language" and changing the language does not help. This only affects the menu.
Please note that in the Padre editor, Unicode characters are displayed correctly.

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

use utf8; ... binmode(STDOUT, ":unix:utf8"); binmode $DB::OUT, ':unix:utf8' if $DB::OUT; ... 
+4
source share
1 answer

As a side note, you probably don't need a layer :utf8 for binmode. It claims that your data is UTF-8, but in fact it does not validate it as such. You want :encoding(UTF-8) . In fact, there is evidence of using the security concept of security for the level :utf8 described at http://www.perlmonks.org/?node_id=644786 .

Unfortunately, some of the Perl documentation is not very clear on this issue.

-one
source

Source: https://habr.com/ru/post/1398326/


All Articles