The Rtf Textbox Control, And Asian Characters - If someone could shed some light...

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > VB Programming

The Rtf Textbox Control, And Asian Characters - If someone could shed some light...

Paradox
I'm currently working on a project for school. I have to make a program for a client, and my client is the head of the Japanese Dept.

I have run into a small problem however...

After finally managing to work out a way to actually get VB to display Asian characters, using the .textRTF property of the richtextbox control. But, in doing this, it turns it into something like this...

CODE
{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\froman\fprq1\fcharset128 MS UI Gothic;}{\f1\fnil\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang1041\f0\fs17\'93\'fa\'96\'7b\'8c\'ea\lang5129\f1
\par}


Needless to say, this creates a slight difficulty for checking the input of the user against a stored value, i.e showing the user a word and getting them to write it in japanese.

So far, this hasn't been an issue, but in response to testing results, I had to increase the font size of the displayed characters. Of course, this affected the programs ability to compare both values, as one is now different to the other.

How can I get around this? Any help would be appreciated.

 

 

 


Reply

eiteljoh
not sure in vb, but have delt with these problems before. if you are comparing the values, i'd suggest either checking their hex or unicode values against eachother.

the real problem with japanese is shift-jis is not a "standard", it's more of a thing. IBM/Microsoft, etc, have their own shift-jis codepages. so it makes this stuff really difficult, because who's codepage do you load?

sorry, but you're in a whole heap of trouble ohmy.gif)

Reply

vizskywalker
You could simply download a Japanese font and use that. I found a site with unicode Japanese fonts, many of which are TTF format, so hopefully they will help. I'm only guessing here because I haven't tested any of this, but the unicode font ought to allow you to check unicode values for different characters.

Reply

vizskywalker
Whoops, forgot the link to the unicode font site, here: http://www.travelphrases.info/gallery/Fonts_Japanese.html.

Reply

Paradox
Thanks man, that looks like it's going to work.

The main issue was because the two richtext boxes were of a different font format (i.e centred, a few sizes larger...) but now, it appears that neither of these will matter, as I should be able to just compare the straight .Text properties.

Thanks again. biggrin.gif

Reply

vizskywalker
You're welcome, and let us know if it does work. If not I'll try to find something else for you. But when dealing with a text problem, I always check the fonts first, it is so frequently a problem that having sites with good fonts is worthwhile.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. visual basic 6 rich text box unicode - 2.09 hr back. (1)
  2. richtext control unicode - 13.26 hr back. (1)
  3. increase richtextbox size in vb 6.0 - 59.15 hr back. (1)
  4. vb6 rich text box unicode - 62.56 hr back. (1)
  5. asian characters vb6 - 78.85 hr back. (1)
  6. asian fonts that look like real asian characters - 104.96 hr back. (1)
  7. vb6 textbox japanese - 111.50 hr back. (1)
  8. .net set richtextbox codepage - 112.34 hr back. (1)
  9. vb express font size in textbox - 112.71 hr back. (1)
  10. display unicode char in visual basic 6.0 textbix - 115.93 hr back. (1)
  11. characters in vb text box - 147.33 hr back. (1)
  12. create rtf asian font - 205.59 hr back. (1)
  13. enter the text in japanese in textbox vb6.0 - 215.82 hr back. (1)
  14. rich text box, vb6.0 - 236.26 hr back. (1)
Similar Topics

Keywords : rtf, textbox, control, asian, characters, shed, light

  1. Vb6 And Unicode
    Problems displaying unicode characters with VB6 (0)
  2. Visual Basic 6.0 Help Needed
    Adding lines to a textbox without delete (15)
    I need help with Visual Basic 6.0 and adding lines to a textbox without deleting any previous
    lines.. I've gotten as far as finding a way to add the lines, but it deletes the prevous entree.
    Help is appreciated!....

    1. Looking for rtf, textbox, control, asian, characters, shed, light

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for rtf, textbox, control, asian, characters, shed, light

*MORE FROM TRAP17.COM*
advertisement



The Rtf Textbox Control, And Asian Characters - If someone could shed some light...



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE