trichview.support
Re: Russian in RichViewEdit |
Author |
Message |
Sergey Tkachenko |
Posted: 09/23/2004 13:42:36 > 1. I'm not sure. I use the default properties. The properties for the TRVStyle->DefCodePage > = 0 Default ANSI code page Value of RVStyle->TextStyles->Items[RichViewEdit->CurTextStyleNo]->Unicode at the moment of pasting is important. > 2. I'm not sure what you mean. I meant the application from where you copy text. As I understand, it's web brower. Which one? If it's Internet Explorer, text is usually copied in RTF format, not text. Not sure about others > 3. The OS is win2k (Is there are difference then for displaying russian in > OS?) It's important, because Clipboard processes text differently in Win9x and WinNT-based systems. In Win9x, Clipboard does not do any text conversion - text is copied and pasted as it is. WinNT/2k/XP put language identifier together with text at the moment of copying. The language is taken from the active keyboard layout (Important: language is written at the moment of copying, not pasting). If keyboard language is not Russian, this text can be inserted as Russian only if both source and target programs are Unicode (text is copied as unicode and pasted as unicode, no language identifiers is required). Otherwise Windows will try to convert this text charset to the keyboard language, and in Russian->English case this will result insering lines of ???????????????. By the way, do you see ???????????, or just a garbage text with accents, umlauts, etc.? In the latter case, the text is pasted as Russian, but cannot be displayed as Russian because the corresponding text style does not have Charset=RUSSIAN_CHARSET. Generally, If you need a true multilingual application, you need to use Unicode (I can explain how). It's possible to represent different languages in the same TRichView documents without Unicode using different charsets, but it will lead to problems like this one. > > (I copy the russian text from a webpage into my application) |
Powered by ABC Amber Outlook Express Converter