Results 1 to 3 of 3

Thread: [2.0] Japanese in my Rich Text Box

  1. #1

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    [2.0] Japanese in my Rich Text Box

    I am having touble getting my rich text box to display Japanese characters.

    The string I assign to the text property when viewed via a quickwatch in debug mode, shows the Japanese characters and whatnot. However between HAVING the correct characters and assigning them to the RTF property, we lose, just about everything. lots of ?? ?? and ????.

    It's bizzare, because all the other controls on the form correctly display the Japanese characters.
    Merry Christmas

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [2.0] Japanese in my Rich Text Box

    Why are you using the RTF property? That's designed to give you access to the underlying RTF code embedded within the document as well as the text.

    Have you tried using the Text property instead?
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  3. #3

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    Re: [2.0] Japanese in my Rich Text Box

    I don't know. This is an issue that I inherited, but essentially, rtf codes are set and modified, then sent to the display box. This is so we can use images, bold, color, etc.

    Our soultion right now: Since Japanese characters are not legal rtf characters, we are converting the bytes to the Unicode, codes. THEN sending them to the rtf which will interperate them as the readable Japanese characters. Fun fun.
    Merry Christmas

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