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 [...]
Tag Archive > utf-8
Python and utf-8: force_unicode
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 [...]
Convert UTF-8 string into an array of chars in PHP
I hope PHP 6 will solve all my problems with UTF-8, but it has not been released yet, and one has to keep coding with the tools it has available.
I think I will probably be sharing the class for string manipulation that I’ve been coding (which of course is 100% compatible with UTF-8).
For now, I’m [...]
Español