Tag Archive > unicode

Unicode support in Python: Frustrations and Solutions

To be honest, I think the support of unicode in Python before Python 3, being totally honest, is a f*knig nightmare. I prefer PHP 5.x support for unicode (= zero support).
One can get just crazy, sometimes things work, sometimes things crash somewhere unexpectly, or they don’t really crash, they just crash when you want to [...]

Continue reading

, , ,

Python and utf-8: force_unicode

Character encoding is the worst thing ever invented. Hopefully somebody invented Unicode and UTF-8 and UTF-32.
For me, UTF-8 is, and should be, the standard for saving and sending text strings all over the world.
Programming languages (even Python) should only support UTF-8 as input, be it from console, from a file, or from a socket. I [...]

Continue reading

, , , ,

The C++ class std::string sucks!

Still today, after some time without programming in C++, I wake up at night with nightmares about string class.
If you have programmed in C++ you probably know what I’m talking about.It’s HORRIBLE. Probably, the designer (or designers) of the standard string class though something like:
“Oh My Good!! We are going to make the best string [...]

Continue reading

, , , ,