[PythonCE] encoding problem

infopazo at hdsnet.hu infopazo at hdsnet.hu
Tue Nov 7 09:33:34 CET 2006


Dear members!

I write an application for polisters in PythonCE 2.5
I use hungarian characters in my program.

#!/usr/bin/python
# -*- coding: latin2 -*-
import os, sys
print sys.getdefaultencoding()
print sys.getfilesystemencoding()
print "öôóüűúéíáÖÔÓÜŰÚÉÍÁ"

The result is the folowing:

mbcs
ascii
and a lot of rectangles.

So, I tred with iso8859-2, utf-8, with same result.
sys.setdefaultencoding() procedure doesnt exists.

I'd like use it with tkinter and sqlite.
How can I use custom characterset with this version?

thanks
PAZO
mondoka.hu



More information about the PythonCE mailing list