[Clojure] Unicode display changes unexpectedly
The Warning symbol is coloured in the second line, but not in the first line. The space seems to remove/reset the formatting introduced by the first character. Can someone explain this behaviour to me, or even better, help me to force the coloured warning symbol? Thanks!
(str (char 0x274e) " " (char 0x26A0))
(str (char 0x274e) "" (char 0x26A0))
Voters
Try running in repl.run. That should allow for better unicode chars.
@a5rocks What do you mean by "better"? I am trying to understand this behaviour.
@jficloj oh sorry, I just meant it shouldn't be as varied on repl.run . I don't know where you can start to understand this behavior, but once you do, you should post on https://repl.it/feedback or https://repl.it/bugs
@a5rocks I found out how to control the behaviour, just append the characters U+FE0E VARIATION SELECTOR-15 or U+FE0F VARIATION SELECTOR-16.
So in this case,
(str (char 0x26A0)(char 0xfe0f))
would result in the coloured version.@jficloj k cool! (now I just need to remember this)