see whatever…

jump to menu

August 19, 2006

Newlines

Filed under: Markup,Programming,Unicode — see @ 1:57 pm

Interesting article at O’Reilly “Understanding Newlines” which is written for Perl but holds true for Python, too. I knew about possible problems but did not run into any problems with newlines yet. But the actual details I did not know completely and so understand why Subversion complains about a mix of newline characters in files I have checked in (which probably was coworkers and me use different editors with even different option settings). Now I also understand what textmode opening of files actually does. This may seem ignorant but until now I almost always worked with textfiles anyway which do not cause problems when using the default textmode filemode of Python and other languages…

Anyway, interesting article, also because some infos about unicode newline characters.

May 10, 2006

unicode

Filed under: Python,Unicode — see @ 7:41 pm

Just found the  Zen of Unicode via  the Agile Testing blog.  Mainly here to let me find it easily but  very useful reading. I read quite a lot of stuff about unicode (processing) already and like Grig thought I know “enough” but I guess it is never enough…

Especially in Python I sometimes get strange (for me ;) behaviour which takes quite some time to figure out why it behaves the way it does. Especially “print”-ing something without encoding it is easily forgotten…

Powered by WordPress