Windows > Software Development for Windows Client Forums > General Windows Development Issues > Encoding toubles with some unicode characters on XP; C# + .NET
Ask a questionAsk a question
 

AnswerEncoding toubles with some unicode characters on XP; C# + .NET

  • Sunday, November 01, 2009 12:26 PMitf4n Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi!

    I am currently working on small application (C# + .NET 2.0, IDE is C# 08 Express) containing following characters: ¬, →, ↔, ⊥, ⊦ (copied from http://en.wikipedia.org/wiki/Table_of_logic_symbols).

    All works well on Vista (tested on my machine, Home Premium; and my friend's Ultimate), and Windows 7. However, on XP, some symbols are can't be displayed (squares appear instead). Interestingly, they do show in browser (tried with FF), but when copied to notepad - squares appear.

    I've tried changing fonts, but problem reappears (Tahoma, Arial).

    In regional settings, all computers have Croatian settings applied (as far as I know), so I doubt that's the problem (if they aren't Croatian - like on my PC's Vista Home P. - then they are English, which should also work).

    Any idea what might be causing the problem/how to fix it?

    Thanks!
    !! XNA !!

Answers

All Replies

  • Tuesday, November 03, 2009 1:33 AMSheng Jiang 蒋晟MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    The font you are using does not contain the graphics of the characters. Try fonts with bigger size.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
  • Tuesday, November 03, 2009 10:20 AMitf4n Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Could you suggest one? I tried lots of them, and none worked.

    P.S. last two symbols in first post are uncorrectcly shown, they should look like "V" and reversed V (A without connection in middle) (symbols for logic AND and logic OR).
    !! XNA !!
  • Tuesday, November 03, 2009 1:04 PMSheng Jiang 蒋晟MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    http://www.bing.com/search?setmkt=en-US&q=unicode+font+xp

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    • Marked As Answer byitf4n Tuesday, November 03, 2009 10:49 PM
    •  
  • Tuesday, November 03, 2009 10:51 PMitf4n Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Ok, Lucida Sans Unicode works. Thanks for help :)
    !! XNA !!