Results 1 to 5 of 5

Thread: (howTo:) TextBox1 showing unicode

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2016
    Posts
    80

    (howTo:) TextBox1 showing unicode

    Hi,

    when visiting the unicode encoder website :

    https://r12a.github.io/apps/conversion/

    and entering the char ...
    Name:  char_a.gif
Views: 156
Size:  1.0 KB

    the result will be :
    Code:
    1D4EA           =Hexadecimal
    F0 9D 93 AA     =UTF-8
    \uD835\uDCEA    =javascript
    How can I display the char in a Forms 2.0 Textbox (called
    TextBox1 - see attached "Forms2.0-TextBox" -Project)
    ?
    Attached Files Attached Files
    Last edited by vb_elmar; Oct 20th, 2017 at 12:55 PM.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 2016
    Posts
    80

    Re: (howTo:) TextBox1 showing unicode

    annotation: the char ...

    Name:  char_a.gif
Views: 156
Size:  1.0 KB
    is displayed here:
    http://www.utf8-chartable.de/unicode...l?start=120042

    it has the Unicode number : U+1D4EA

    How can I display this char in a Forms 2.0 Textbox
    Last edited by vb_elmar; Oct 20th, 2017 at 12:47 PM.

  3. #3
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    Re: (howTo:) TextBox1 showing unicode

    You can use a Unicode aware TextBox like Krools or InkEdit to display "��������":

    Code:
    Private Sub Form_Load()
      InkEdit1.Text = ChrW$(&HD835) & ChrW$(&HDCEA) & ChrW$(&HD835) & ChrW$(&HDCF4) & ChrW$(&HD835) & ChrW$(&HDC86) & ChrW$(&HD835) & ChrW$(&HDCFD)
      Debug.Print Len(InkEdit1.Text)
    End Sub
    Name:  InkEditDemo.jpg
Views: 132
Size:  9.4 KB

    You will have to download Krool OCX or UniSuiteFree controls to test this but here is a screenshot comparing 4 controls (including MsForms 2.0 which does not work for this Unicode string.

    Name:  InkEditDemo2.jpg
Views: 151
Size:  20.8 KB
    Last edited by DrUnicode; Oct 20th, 2017 at 01:57 PM. Reason: Typo

  4. #4
    Fanatic Member Spooman's Avatar
    Join Date
    Mar 2017
    Posts
    868

    Re: (howTo:) TextBox1 showing unicode

    Doc

    How on earth did you get

    to display "𝓪𝓴𝒆𝓽"
    that to appear that way in the basic reply?

    Spoo

  5. #5
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    Re: (howTo:) TextBox1 showing unicode

    Just pasted it and it was displaying OK here but now I see it displayed as: to display "��������":
    BabelMap shows first char to be 𝓪 but our UniConverter shows first character to be:
    ChrW$(&HD835) & ChrW$(&HDCEA)

    In Demo, Debug.Print Len(InkEdit1.Text) shows the string to be 8 chars.
    Last edited by DrUnicode; Oct 20th, 2017 at 02:07 PM. Reason: Debug.Print Len(InkEdit1.Text) = 8

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