I cannot get Mac Terminal to display U+200C, aka zero-width non-joiner, correctly. Instead, it simply types <200c>
.
Unicode settings for the profile I use have been set to UTF-8 as described on this Apple Support page. I am also using a font which has a glyph for this character, as I can test it in Font Book.
Any ideas on how to get Terminal to display this character properly? In case you want to try it, use the below text and see if it appears in your terminal as in the webpage.
میروم
(Persian word meaning I'm going
).
P.S. Let me know if you happen to know another terminal on any other platform which might correctly display this character.
str='می<200c>روم'
, but when I runecho $str
, it correctly displays:میروم
. How can I get it to display correctly in the first place?