Page 1 of 1

Paste Unicode text

Posted: Wed Jan 25, 2006 9:45 pm
by Denoson
Can you help me? How I can paste unicode text in TRichViewEdit?

I use your actions demo (for test).

1) Copy Unicode text (Hebrew or Thai or other)
I use special Unicode tools from (http://www.efg2.com/Lab/)
Screenshot: 060125_142746_unicode_copy_paste.gif

2) Paste to TRichViewEdit (Paste or Paste special/Paste as Unicode)

3) Results: ???????????? (all symbols)

If I paste Unicode text to MSWord, then copy and paste again into then TRichViewEdit - all works fine.

Posted: Wed Jan 25, 2006 10:16 pm
by Sergey Tkachenko
If your TRichViewEdit's text is not Unicode, then
1) Set keyboard layout to the text language BEFORE the copying.
2) Set the proper Charset of the current text in RichViewEdit.
(It's not possible to paste text of multiple languages having different Charsets using this method)

Or use Unicode: http://www.trichview.com/forums/viewtopic.php?t=70 , it will solve these multilanguage problems.

Unicode

Posted: Wed Jan 25, 2006 11:25 pm
by Denoson
Thanks, now it works :)
rvruOnlyUnicode- necessarily to set or not?
(RichViewEdit1.RTFReadProperties.UnicodeMode = rvruOnlyUnicode)
Can I use rvuMixed?


Image

Posted: Thu Jan 26, 2006 9:27 am
by Sergey Tkachenko
RichViewEdit1.RTFReadProperties.UnicodeMode affects only RTF pasting.
Mixed mode is recommended if your documents are basically not Unicode, but may contain some Unicode symbols.
For multilanguage applications, it's recommended to use only Unicode.