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.
Problem using TRichViewEdit + russian text
Re: Problem using TRichViewEdit + russian text
Sorry, version 1.9.24Misha 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.
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.