Page 1 of 1

Problem using TRichViewEdit + russian text

Posted: Fri Mar 07, 2008 8:17 am
by Misha
Using TRichViewEdit, define properties:
RTFReadProperties.UnicodeMode = rvruMixed
RTFReadProperties.TextStyleMode = rvrsAddIfNeeded

Compile, start application, type a russian text using TRichViewEdit . Then copy and paste russian text, from IE (version 7,0,6000,16609) thus, that in the end was space, after that I try to type some russian text following inserted text, but I've got non-readeble text.

Re: Problem using TRichViewEdit + russian text

Posted: Fri Mar 07, 2008 8:24 am
by Misha
Misha wrote:Using TRichViewEdit, define properties:
RTFReadProperties.UnicodeMode = rvruMixed
RTFReadProperties.TextStyleMode = rvrsAddIfNeeded

Compile, start application, type a russian text using TRichViewEdit . Then copy and paste russian text, from IE (version 7,0,6000,16609) thus, that in the end was space, after that I try to type some russian text following inserted text, but I've got non-readeble text.
Sorry, version 1.9.24

Posted: Fri Mar 07, 2008 12:04 pm
by Sergey Tkachenko
The most probably in the place where you typed after the insertion, text was non-Unicode and with non-Russian Charset.

To solve all problems with multilanguage text, you can use completely Unicode documents, see http://www.trichview.com/forums/viewtopic.php?t=70
If you do not want to use Unicode for all text, you need to specify the text charset explicitly (for example, using a font dialog). There is an option allowing to autoswitch charsets: include rvoAutoSwitchLang in RichViewEdit.EditorOptions. But it woks only when you switch keyboard layout when the caret is in the editor.