OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Python => Topic started by: shula on February 15, 2005, 10:20:19 am

Title: Encodings Detection Under Python
Post by: shula on February 15, 2005, 10:20:19 am
i'm writing an app that is using lots of encodings in and out.
so... i prefer to use utf8.
i'm on pdaXrom, with TTF fonts under Xterm, so there's not much trouble for me,
but

1.  how does UTF8 output seen on cacko sharp ?   e.g. with the "unifont" font.
2.  how do i detect the UTF/unicode/encoding of the terminal?

so far i did something like
Code: [Select]
sys.stdout.encodebut it gave me cryptic "ANSI_X3.4-1968",
both on non-TTF and TTF virtual terminals :-(



also, i'd like it to work on non virtual terminal   but that's something completely different.
Title: Encodings Detection Under Python
Post by: shula on February 15, 2005, 10:34:41 am
BTW: i'm looking for a SQLite (or pysqlite) with soundex support
(for the above dictionary, of course).
alternatively, i'll have to compare each entry in the DB to the soundex in python, and that (most probably) quite stupid, in terms of time.

if someone have such a version, please let me know
thanks!