OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Encodings Detection Under Python, how to know the terminal type etc
shula
post Feb 15 2005, 07:20 AM
Post #1





Group: Members
Posts: 95
Joined: 20-October 04
Member No.: 5,111



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
sys.stdout.encode

but 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 ph34r.gif but that's something completely different.
Go to the top of the page
 
+Quote Post
shula
post Feb 15 2005, 07:34 AM
Post #2





Group: Members
Posts: 95
Joined: 20-October 04
Member No.: 5,111



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!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2014 - 04:32 PM