Problem using TRichViewEdit + russian text

General TRichView support forum. Please post your questions here
Post Reply
Misha
Posts: 2
Joined: Wed Mar 05, 2008 4:01 pm

Problem using TRichViewEdit + russian text

Post 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.
Misha
Posts: 2
Joined: Wed Mar 05, 2008 4:01 pm

Re: Problem using TRichViewEdit + russian text

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply