Am 2016-12-27 um 05:21 schrieb William López Miranda <walopez...@yahoo.com>:

> The special characters of the Spanish language:
> 
> First of all I want to thank Ed Leaf and Paul McNett for Frame Dabo.
> I come from programming in Visual Foxpro and I have looked for an option to 
> program that can complement me, so I found Dabo.
> 
> I had the following problem:
> 
> - Names of columns in tables with special characters like ñ, ó, é, etc. 
> And could not define them in Pytho with Dabo.
> 
> But I found the solution and I hope that if there are others like me with the 
> same problem, either with Spanish or another set of characters, I can serve.
> 
> I found it in a PDF of Ángel Luis García García (angellui...@gmail.com): 
> 
> "Introduction to Python", this is:
> 
> Create a .py file, , and name it:
> "Sitecustomize.py"
> 
> Import sys
> Sys.setdefaultencoding ('iso-8859-1')
> 
> And put it in: C: \ Python27 \ Lib \ site-packages
> 
> That is all, I hope it is useful, because with this the problem is 
> solved, do not modify the tables, much less Dabo.

This is most probably unneccessary if not utter nonsense - with Latin-1 (ISO 
8859-1) you’ll get problems next time if you need Eastern European (Latin, 
Greek or Cyrillic) characters. It doesn’t even contain the € sign (you might 
use 8859-15).
Did you try 'utf-8'?

Or did you just forget that Python < 3 needs the unicode marker in front of 
strings?
like this: u'fiëé visuëlle'
And that you need to define the encoding of your Python files in a comment in 
the first few lines?
like this: # -*- coding: utf-8 -*-

(I’m currently not using dabo any more, so I didn’t try if that’s enough.)

Greetlings, Hraban
---
http://www.fiee.net
GPG Key ID 1C9B22FD




_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/0e1d0aa5-589e-4085-81c9-78ca0183c...@fiee.net

Reply via email to