in reply to Re^3: How to display unicode charset in Win32::GUI?
in thread How to display unicode charset in Win32::GUI?

And better yet - switch to Tcl/Tk GUI - it allows unicode reasonably well.

So does Wx :)

  • Comment on Re^4: How to display unicode charset in Win32::GUI?

Replies are listed 'Best First'.
Re^5: How to display unicode charset in Win32::GUI?
by vkon (Curate) on Feb 17, 2011 at 09:42 UTC
    ... and Gtk2 :)

      Thank you very much for taking the time.

      Test logs...

      wxPerl

      ..
      $self->{label_1} = Wx::StaticText->new($self, -1, "\x{442}\x{44C}\x{438}\x{43B}\x{43F}\x{43E}\x{440}\x{449}\x{43D}\x{435}", wxDefaultPosition, wxDefaultSize, );
      ..

      Tested on Win 7 and xp pro and displayed russian charset; no problem.

      Perl/Tk

      ..
      -text => "\x{442}\x{44C}\x{438}\x{43B}\x{43F}\x{43E}\x{440}\x{449}\x{43D}\x{435}",
      ..

      Tested on Win 7 and xp pro. Auto text encoder good! and display russian charset; no problem.

      Gtk2

      ..
      my $label = Gtk2::Label->new ('ьиьиьиьиь:');
      ..

      Tested on Win xp pro (not installed gtk2 module on win 7 os) and no encoder! Display directly russian charset; no problem.

      But;

      My OS win platform :) and supported perl module Win32::GUI

      A very stupid situation. :/

      I've read at least 30 documents and tried many encode/decode modules but didn't.

      The whole project written with Win32::GUI module.Can not change the "win32-gui" module with others!

      My Ideas...

      Did i use a different module? :)

      The current project consists of 15.000 lines. Rewrite project with other perl GUI module? :)

      OR

      Can i use a combination of 2 modules?

      Ex: Win32::GUI and wxPerl(Label) module combination....?

        15000 lines... this is much...

        Actually fixing Win32::GUI seems more sane, due to your code base.

        No, mixing Wx and Win32::GUI does not sound possible to me
        again, let's suppose that your codebase is too large to change GUI.

        I would advise to contact developers of Win32::GUI to help you.
        actually it is even possible to hack a small helper module that will fix your problem.

        maybe you could donate some small amount of money to developers of that module so they will provide a normal fix of their module?