[Clojure] Unicode display changes unexpectedly
jficloj (0)

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))

You are viewing a single comment. View All
a5rocks (534)

Try running in repl.run. That should allow for better unicode chars.

jficloj (0)

@a5rocks What do you mean by "better"? I am trying to understand this behaviour.

a5rocks (534)

@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

jficloj (0)

@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.

a5rocks (534)

@jficloj k cool! (now I just need to remember this)