Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 222

Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 224

Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/public/lib.urlhandlers.php on line 65

Warning: Cannot modify header information - headers already sent by (output started at /home/jdobbels/www/blog/inc/config.php:40) in /home/jdobbels/www/blog/inc/clearbricks/common/lib.http.php on line 247
Tag - python - JDobbelstein.dev()

Tag - python

Entries feed - Comments feed

Monday, January 10 2011

A custom Vimsh

Continue reading...

Tuesday, August 10 2010

Unicode in Python and i18n in Fedora

When I was playing with the ports4dotclear system (see the previous post about it), I had to fix a number of Unicode handling errors in both Python and Perl. For those of you who do not know what is Unicode, it's the technology which allows me to write this kind of stuff: «æ€¶ŧ←»® or «你好世界».

I was forced to use Unicode because, well, XML-RPC communications are in XML and thus require the content to be encoded in UTF-8 (a Unicode encoding/decoding charset).

All this mess leads me to this conclusion : Unicode sucks in Python 2.x ! (and Fedora i18n has still some strange artifacts)

Continue reading...

Friday, January 15 2010

XML-RPC on DotClear

XML-RPC is a protocol to remotely control a web application. Here is a short demo of XML-RPC to create, view and edit entry on the DotClear2 blog platform from the command line, using a tiny python script.

Continue reading...