[python-nl] unicode barf

Armijn Hemel armijn at uulug.nl
Sat Dec 23 20:40:36 CET 2006


On Sat, Dec 23, 2006 at 08:34:39PM +0100, Remco Wendt wrote:
> Het hoofdstuk over Unicode uit Dive Into Python is sowieso ook erg
> nuttig: http://diveintopython.org/xml_processing/unicode.html
> 
> Je kan middels de file sitecustomize.py (ergens in je python path) er
> ook voor zorgen dat je default encoding op UTF-8 staat:
> 
> # sitecustomize.py
> # this file can be anywhere in your Python path,
> # but it usually goes in ${pythondir}/lib/site-packages/
> import sys
> sys.setdefaultencoding('utf-8')
> 
> Maareh mysql ondersteunt toch ook UTF-8?

Jep. Ondertussen werkt alles netjes en in ieder geval beter dan de ranzige
PHP gebaseerde hacks die we eerst hadden, of die anderen gebouwd zouden
hebben ;-)

armijn

-- 
 ---------------------------------------------------------------------------
  armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
 ---------------------------------------------------------------------------


More information about the Python-nl mailing list