Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
amelius
5 months ago
|
parent
|
context
|
favorite
| on:
How to chop off bytes of an UTF-8 string to fit in...
Why is that a problem? If you cut off the country, at least you know that there was a flag. If you cut off the entire grapheme, then you know nothing!
bux93
5 months ago
|
next
[–]
Well, if the user entered a French flag, and then you show it back to them as a white flag, you may cause a bit of an international incident. Or worse, accusations of telling very old jokes.
recursive
5 months ago
|
prev
[–]
I think you'd just get the first letter of the country code and not a flag at all.
The deadline for YC's W25 batch is 8pm PT tonight. Go for it!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: