Results 1 to 4 of 4

Thread: Symbols like € œ when given as part of text are displayed differently

  1. #1
    Join Date
    Mar 2012
    Posts
    7
    Qt products
    Qt4
    Platforms
    Symbian S60 Maemo/MeeGo

    Default Symbols like € œ when given as part of text are displayed differently

    Hi, I have to display € œ as part of the text element. In the qml file the above symbols are shown properly but when i run the program. They are shown differently.

    Please let me know how i can resolve this problem. I have run it on desktop only.

    Regards
    Kusuma

    I have attached a snapshot of the problem that i am facing.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Symbols like € œ when given as part of text are displayed differently

    What is the text encoding of your source file?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2012
    Posts
    7
    Qt products
    Qt4
    Platforms
    Symbian S60 Maemo/MeeGo

    Default Re: Symbols like € œ when given as part of text are displayed differently

    Hello,

    The encoding of the qml file is utf-8. please see the attached image.
    I am still struggling to find the rootcause for this strange behavior.
    Any help is appreciated.
    Attached Images Attached Images

  4. #4
    Join Date
    Sep 2008
    Location
    Munich
    Posts
    32
    Thanked 8 Times in 6 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Symbols like € œ when given as part of text are displayed differently

    Try to enter the unicode symbol directly e.g.

    "Hello World \u20AC".

    If it does not solve your problem, I guess your font does not contain a EURO symbol (which would be strange). The you could try another font (font.family: "Arial" for example)

    Happy Coding!

Similar Threads

  1. Replies: 3
    Last Post: 21st March 2013, 23:12
  2. No text displayed in widgits after installing Qt on Sun Solaras 8
    By rajyadav in forum Installation and Deployment
    Replies: 0
    Last Post: 11th April 2012, 00:05
  3. Replies: 2
    Last Post: 21st May 2010, 14:32
  4. Replies: 1
    Last Post: 6th November 2009, 10:03
  5. highlighting text between the same symbols
    By kib2 in forum Qt Programming
    Replies: 3
    Last Post: 11th November 2007, 21:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.