News for hackers. Stuff that matters.
Re:Your code displays Japanese wrong by wodenokoto on Thursday October 28, 2021 @03:45AM (#29023467)
Wonder how well HN and my phone handles this. There are supposed to be Unicode code points that indicate which locale a character is supposed to be displayed in. If things are well thought out, my phone should add them automatically and HN should keep them and your browser should render it correctly

On an iPhone using,

Chinese simplified keyboard: 刃

Japanese keyboard: 刃

So that didn’t go very well. When choosing the character on my Chinese keyboard it is displayed with correct Chinese strokes but turns into the Japanese version in the text box. I’m guessing for most of you reading, both will appear Chinese.

EDIT: Someone better than me at wrangling unicode can maybe try out the variation selectors, and print the correct variations in a comment. I think it would have been neat if my keyboard ime did it for me :)

https://en.wikipedia.org/wiki/Variation_Selectors_(Unicode_b...

Re:Your code displays Japanese wrong by aikinai on Thursday October 28, 2021 @04:23AM (#29023679)
They both appear Japanese for me on mobile Safari. But Japanese is my second preferred language on the device (after English), so that’s probably why.
Re:Your code displays Japanese wrong by wasmitnetzen on Thursday October 28, 2021 @04:34AM (#29023746)
Yep, Simplified Chinese for me (with LANG=en_US.UTF-8).
Re:Your code displays Japanese wrong by skneko on Friday October 29, 2021 @04:45AM (#29036556)
Both appear Japanese for me. Locale = es_ES.UTF-8