[maemo-developers] problem with python, gtk and utf8
From: peltsip at gmail.com peltsip at gmail.comDate: Sun Oct 3 18:09:39 EEST 2010
- Previous message: Handling files in root privileged directory from an application
- Next message: problem with python, gtk and utf8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi!
I am having a problem with dict(?!?)
the code starts with:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
and the dict(?!?) is like this:
letters = {}
letters['1'] = ['', '.', ',', '?', '!', '1', '@', '-', '_', '(', ')', ':', ';', '&', '%', '*', '#', '+', '<', '=', '>', '$', '£', '§', '¥']
letters['2'] = ['', 'a', 'b', 'c', '2', 'å', u'ä']
etc.
and the appropriate char from that is written with:
self.message_buffer.set_text(updatedtext)
everything works perfectly until it is turn for ä to appear (to be written with set text above). after that there is a error:
GtkWarning: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
does anyone have an idea what I am doing wrong?
whole source can be found at gitorious if needed (except char ä etc)
http://gitorious.org/vertsms
any help is appreciated!
Ossipena / TimoP
- Previous message: Handling files in root privileged directory from an application
- Next message: problem with python, gtk and utf8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
