Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
account42
on Oct 9, 2024
|
parent
|
context
|
favorite
| on:
A popular but wrong way to convert a string to upp...
User-provided data, yes, but also data where you can treat non-ASCII bytes as garbage in -> garbage out. E.g. the config file might be typed by a human but if you need to support case-insensitive keys you still don't need to worry about Unicode.
kergonath
on Oct 10, 2024
[–]
Exactly. But in this case, don’t try to upper-case or otherwise transform anything.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: