Tags » unicode
-
TIL: When fixing mojibake, use
ftfy.fix_and_explain()
to understand how it’s fixing a piece of text -
TIL: How to create flag emojis for countries in Python
-
TIL: Use the regex library to get Unicode property escapes in Python
-
TIL: Use Unicode property escapes to detect emoji in JavaScript
-
Operations on strings don’t always commute
Is uppercasing then reversing a string the same as reversing and then uppercasing? Of course not.
-
Notes on reading a UTF-8 encoded CSV in Python
Some notes on trying to do this in a way that supports both Python 2 and 3, and the frustration of doing so.
-
Another example of why strings are terrible
Pop quiz: if I lowercase a string, does it still have the same length as the original string?