3 ms·
Well, the only time you can do str lower where unicode locale awareness will be a problem is when you do it on the user input, like names. How about you just d
by Muromec 2y ago
Well, the only time you can do str lower where unicode locale awareness will be a problem is when you do it on the user input, like names.
How about you just dont? If it's a constant in your code, you probably use ASCII anyway or can do a static mapping. If it's user user input -- just don't str lower / str upper it.
- account42 2y agoYes, except when it is not your choice. If the requirements are to display some strings in lower/uppercase then you need to find a way to do that. That doesn't have to be using the standard library though.