I want to use unicode symbols in a QGIS label - is this supported? I.e. I have this expression for labelling a line:

case when xat(-1) - xat(0) > 0 then
  'GF ->' 
  '<- GF'

and want to replace the '->' and '<-' with the unicode characters representing left and right arrows.

Is there a way I can achieve this?

2 Answers 2


You can use Unicode in your expressions for any label. Just copy and paste your Unicode character, in any way you like, in your code:

enter image description here

And here's the result:

enter image description here


With QGIS 3.x we can use unicode symbols (aka Emojis) everywhere:

enter image description here

If we want to show colorful emojis in map canvas - like in the example above - we have to switch label rendering to always text: enter image description here

Unfortunately, we loose all colors in map composer and when printing/exporting: enter image description here

But it's definitely a nice way to display symbols in feature labels.

The complete list of emojis is here: https://unicode.org/emoji/charts/full-emoji-list.html

To use the emojis in QGIS, we can copy the symbols directly from the Browser column (see link above). No need to enter any hex codes 😁👍.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.