Hi,

Where a wxWidgets method expects a wxString, the translation from the Perl SV to a wxString uses the same code throughout the entire library.

As part of the translation, wxPerl checks if the SV you pass has the utf8 flag set.

The problem just might be that DBD::Pg is not returning what you think it is.

To check, in your code that fails when you pass $yourstring to a wxPerl method, do

utf8::upgrade($yourstring);

first.

If this fixes your problem, you have your answer.

Cheers

Mark


On 26/04/2013 12:39, Jiří Pavlovský wrote:
Hello,

I have a problem with ComboBox and utf8 data.
For example string "Derviş" is displayed like "Dervi" + 2 weird characters.

If I just create a test case, paste the mentioned string into the code
and 'use utf8' then it works.

But these strings are coming from db and DBD::Pg is set to convert them
to the perl internal encoding.

Also there seem no to be a problem with other controls.
Wx::Perl::ListCtrl displays it correctly.

Thanks.


Reply via email to