trichview.support
Re: RichView for Unicode |
Author |
Message |
Sergey Tkachenko |
Posted: 08/27/2002 18:35:57 This parameter has WideString type. I am not sure how to encode Unicode string just in C++ source code. I believe that any string constant should be converted to WideString automatically, so call MainForm->RichView1->AddNLWTag("abcd" ,0,0,0); is correct. But this conversion will be performed using system default locale, so it's not a good idea to use it for Chinese strings. Where you get Chinese strings? If from files, you can use RichView methods for loading files. Or see C++Builder help topic "International API" for a list of functions working with Unicode. PS: do not forget to set Unicode property to true for RichView text styles representing Unicode text (or for all text styles). > > Dear guys, I'm using a trial version of RichView Package for C++Builder 5 > and I'm trying to incapsulate chinese chars into a RichView component. > It is working fine if I try to put one wide char only like that: > MainForm->RichView1->AddNLWTag(0x4e44,0,0,0); > but I couldn't manage to put more than one into this call. > How can I do to represent 2 or 3 chars with the same call? > How should I separate the chars? > Thank you very much for your help. > Bye, > Emanuele > |
Powered by ABC Amber Outlook Express Converter