April 18, 2012

goocreations goocreations
Lab Rat
115 posts

Displaying Unicode Characters

 

I have 2 machines, both running Ubuntu 11.10 (one is 32bit, the other one 64bit). I want to display a unicode character in a QLabel. I’ve done the following:

  1. label.setText(trUtf8("\u2205"));

This (and basically all Unicode characters) can be diasplayed on my 32bit machine, but for some reason it doesn’t show (or shows as a rectangle) on my 64bit machine. Does anyone know why this happens and how I can ensure that it will always show?

1 reply

April 18, 2012

soroush soroush
Lab Rat
660 posts

AFAIK, the “Rectangle“s are displayed when you’re missing a font in you’re system. “Question Mark“s are displayed when you have a problem with encoding.

 
  ‹‹ Getting stdout from applications like pdb      using QVariantMap with dbus ››

You must log in to post a reply. Not a member yet? Register here!