Results 1 to 7 of 7

Thread: display unicode char in textbox

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    display unicode char in textbox

    Hey all,

    I wanted to create a program that would mix regular text and unicode charters in a "output" textbox

    the problem i run into is that when i display charters in unicode they just show up as blocks?

    is this a limitation of the textbox or is it a font issue?

    if its a font issue is there a font that supports unicode charters ( and are unicode charters universal across fonts? ie is an upside down ? the same unicode in one font as another?


    thanks

    Crash

  2. #2
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: display unicode char in textbox

    i don't see anything wrong with the code you posted.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: display unicode char in textbox

    It could be a font issue, what font are you using? Of course, I dont know if there are fonts that supports all unicode letters, seeing as they're extremely many. And yes, an upside down questionmark would be the same unicode value on every font that supports it, if not, the font is faulty.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  4. #4

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: display unicode char in textbox

    Quote Originally Posted by dbasnett
    i don't see anything wrong with the code you posted.

    thanks for looking at it anyway


    basically i'm trying to flip the text upside down

    z ʎ x ʍ ʌ n ʇ s ɹ b d o u ɯ l ʞ ɾ ı ɥ ƃ ɟ ǝ p ɔ q ɐ

    like so

    to do so i have a sub that steps through each char of the input textbox.text
    then a sub that gets feed one char at a time and returns the upside down charter

    the problem is that when i set the upsidedown string to the textbox.text i get alot of blank squares


    I will post the resolution here if i figure it out ( which font i need)

  5. #5
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: display unicode char in textbox

    I've tried using the VS default font MS Sans Serif and it worked alright.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  6. #6
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: display unicode char in textbox

    it could be an encoding problem. characters that can't be decoded get turned into ?

    but without code it is just guesswork.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  7. #7

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: display unicode char in textbox

    Got it

    I set the font to "Lucida Sans Unicode, 8.25pt"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width