Hi
I Write a Script with Win32::Gui.
I have problem for read from AddTextfield() with UTF8 character.
I can Write in it , with UTF8 characters(I can Write with utf8 in AddLabel and ...) , but I need read from AddTextfield() in Win32::Gui.but when print it in IDE, Instead Of utf8 character unknow character showing for me.
for example Instead Of محمد , this charachter printed :(γΝγΟ).
my $name = $main->AddTextfield(
-name => 'nametextfield',
-pos=>[480,70],
-size => [ 140, 25 ],
-font => $font1,
-align => 'right',
-tabstop => 1,
);
$text = $main->nametextfield->Text;
when I want insert text in database this error OCCUR ,(my column name is ,name and my database charachter set is utf8 collation utf8_persian_ci):
---------------------------
DBD::mysql::st execute failed: Incorrect string value: '\xE3\xCD\xE3\xCF' for column 'name' at row 1
-------------------------
thankyou for help me.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.