Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Win32-GUI CPAN distribution.

Report information
The Basics
Id: 56295
Status: resolved
Priority: 0/
Queue: Win32-GUI

People
Owner: robertmay [...] cpan.org
Requestors: mohsenaliiran [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: How read utf8 charachters from AddTextfield() in Win32::Gui
Hi I Write a Script with Win32::Gui. I have problem for read from AddTextfield() with UTF8 character. when I Write or type with utf8 in AddTextfield() , and then I want print it , unkonw charachter printed. How can I encode or decode printing text to utf8? please help me thankyou
Subject: azansinformation.pl
#!C:/strawberry/perl/bin/perl.exe use strict; use warnings; use Encode; use utf8; use Win32::API (); use Win32::GUI(); my $main = Win32::GUI::Window->new( -width => 300, -height => 170, -left => 200, -top => 100, -minsize => [300,170], -maxsize => [300,170], -dialogui =>1, ); $main->AddTextfield( -name => 'nametextfield', -pos=>[50,50], -size => [ 140, 25 ], -align => 'right', -tabstop => 1, ); my $savelabel = $main->AddButton( -name => 'save', -text =>'click me', -pos => [50,100], -tabstop => 1, ); print $main->nametextfield->Text; $main->Show(); Win32::GUI::Dialog(); sub Main_Terminate { return -1; } sub save_Click{ my $nn = $main->nametextfield->Text(); print $nn; }
From: mohsenaliiran [...] yahoo.com
On Mon Apr 05 11:23:37 2010, mohsenali wrote: Show quoted text
> Hi > I Write a Script with Win32::Gui. I have problem for read from > AddTextfield() with UTF8 character. > when I Write or type with utf8 in AddTextfield() , and then I want print > it , unkonw charachter printed. > How can I encode or decode printing text to utf8? > please help me > thankyou
Can not someone help me to
This queue is for bug reports. For help using Win32::GUI please use the mailing lists. See http://perl-win32-gui.sourceforge.net/ for more information on how to subscribe. Regards, Rob.
From: mohsenaliiran [...] yahoo.com
On Thu Apr 08 17:51:49 2010, ROBERTMAY wrote: Show quoted text
> This queue is for bug reports. For help using Win32::GUI please use the > mailing lists. See http://perl-win32-gui.sourceforge.net/ for more > information on how to subscribe. > > Regards, > Rob.
if is not a bug , what is my quastion answer. I discuss this problem in ,many forums , but I cant find , solution. thankyou for your help.
If you need unicode string you have to decode value from your ANSI page like this:

Show quoted text
# for example when your ANSI code page is 1250:
my $nn_utf8 = decode('cp-1250', $main->nametextfield->Text());