[Qgis-developer] Qstring has no attribute toStdString
Denis Rouzaud
denis.rouzaud at gmail.com
Wed Apr 11 05:45:03 EDT 2012
Hi Richard,
Thanks a lot for the tip.
I'll use it!
On 04/11/2012 11:08 AM, Richard Duivenvoorde wrote:
> On 04/11/2012 10:56 AM, Denis Rouzaud wrote:
>
>> I finally end up using str("%s" % myString), which works.
>
> Hi Denis,
>
> maybe you should use unicode(..) instead of str(...) and be sure to
> work with unicode for ALL your strings in your code.
>
> Otherwise you will end up (like me :-( ) to find out that you have
> certain character encoding problems in certain code area's (non ascii
> character used for example by .... the french ;-) )
>
> Regards,
>
> Richard Duivenvoorde
More information about the Qgis-developer
mailing list