Monthly Archives: December 2010

Python unicode doctest howto in a doctest

Another thing which has been on my stack for quite a while has been a unicode doctest howto, as I remember I was quite lost when I first tried to test encoding stuff in a doctest. So I thought the … Continue reading

Posted in Coding | Tagged , , , , , , , | Leave a comment

How to restrict the length of a unicode string

Ha, not with me! It’s a pretty common tripwire: Imagine you have a unicode string and for whatever reason (which should be a good reason, so make sure you really need this) you need to make sure that its UTF-8 … Continue reading

Posted in Coding | Tagged , , , , | 6 Comments