Author Topic: Encodings Detection Under Python  (Read 4116 times)

shula

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Encodings Detection Under Python
« 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.
C860, pdaxrom rc8,
with Gnumeric as the perfect PIM :-)

shula

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
Encodings Detection Under Python
« Reply #1 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!
C860, pdaxrom rc8,
with Gnumeric as the perfect PIM :-)