Tag Archives: utf8

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

(URL)Encoding in python

Well, encodings are a never ending story and whenever you don’t want to waste time on them, it’s for sure that you’ll stumble over yet another tripwire. This time it is the encoding of URLs (note: even though related I’m … Continue reading

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

Python and encoding

Well, first real post, so let’s start easy. I’ve been working a lot with python lately, and came across a nice short How to Use UTF-8 with Python which also makes the difference between unicode and utf8 very clear. The … Continue reading

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