Re: split string with hieroglyphs

2006-12-24 Thread Belize
Steven, thanks! Very nice algorithm. Here is code: #!/usr/bin/env python # -*- coding: utf_8 -*- # Thanks Steven D'Aprano for hints import unicodedata import MySQLdb #MySQL variables mysql_host = "localhost" mysql_user = "dict" mysql_password = "passwd" mysql_db = "dictionary" try: my

Re: split string with hieroglyphs

2006-12-23 Thread Steven D'Aprano
On Sat, 23 Dec 2006 19:28:48 -0800, Belize wrote: > Hi. > Essence of problem in the following: > Here is lines in utf8 of this form "BZ???TV%??DVD" > Is it possible to split them into the fragments that contain only latin > printable symbols (aplhabet + "?#" etc) Of course it is possible, but the