-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28.03.2013 11:02, Constantinos Lalos wrote:
> ... Now, i have the following problem. By default, the db returns a
> string, which consists of greek characters. Unfortunately, this
> string cannot be recognized on the ticket interface (it appears a
> string that consist of multiple '?' , while it should be a string
> with greek characters). I use the following code to do this,
> 
> info = cursor.fetchone()
> 
> s_info = str(info)
> 
> if info: self.config.set('ticket-custom','details.value',s_info)

It's the str() method.

Try to use to_unicode() from trac.util.text instead of str().

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlFUHBcACgkQ31DJeiZFuHfCkgCeIEqxitExnQD24/R3Kqd8N5k7
WxoAoLdKCFvm2BJTE4znPtRwV9vraQYX
=Y3I3
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to