Unicode chr(150) en dash

2008-04-15 Thread marexposed
Hello guys & girls I'm pasting an "en dash" (http://www.fileformat.info/info/unicode/char/2013/index.htm) character into a tkinter widget, expecting it to be properly stored into a MySQL database. I'm getting this error: **

Re: Unicode chr(150) en dash

2008-04-17 Thread marexposed
Thank you Martin and John, for you excellent explanations. I think I understand the unicode basic principles, what confuses me is the usage different applications make out of it. For example, I got that EN DASH out of a web page which states at the beggining. That's why I did go for that encod

MySQL hardcoding?

2008-04-17 Thread marexposed
I've got this error (see the path in last line) db=MySQLdb.connect(host='localhost',use_unicode = True, charset = "Windows-1251",user='root',passwd='12',db='articulos') File "C:\Python24\Lib\site-packages\MySQLdb\__init__.py", line 74, in Connect return Connection(*args, **kwargs) Fil

Re: Unicode chr(150) en dash

2008-04-18 Thread marexposed
On Thu, 17 Apr 2008 20:57:21 -0700 (PDT) hdante <[EMAIL PROTECTED]> wrote: > Don't use old 8-bit encodings. Use UTF-8. Yes, I'll try. But is a problem when I only want to read, not that I'm trying to write or create the content. To blame I suppose is Microsoft's commercial success. They won't a

Re: MySQL hardcoding?

2008-04-18 Thread marexposed
On Thu, 17 Apr 2008 22:00:21 GMT John Machin <[EMAIL PROTECTED]> wrote: > The empirical evidence from other recent postings is that you are > mucking about with Spanish-language newspaper "articulos" on the web ... > so why charset = "Windows-1251", which is Cyrillic (i.e. Russian etc)?? > Perh