Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
duckerude
on July 29, 2018
|
parent
|
context
|
favorite
| on:
A Spectre is Haunting Unicode
As an example, the Greek letter sigma has two lowercase forms, depending on whether it's at the end of a word. So 'ς'.upper().lower() == 'σ', even though all three characters are ordinary Greek letters you could even find within a single word.
princekolt
on July 29, 2018
|
next
[–]
adds to personal notes: Never accept a job that involves manually dealing with locales
rspeer
on July 30, 2018
|
parent
|
next
[–]
Good note, but the fact that ς doesn't round trip isn't locale-dependent.
tedunangst
on July 30, 2018
|
prev
[–]
Thanks. That's a much better example.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: