Paste Unicode text

General TRichView support forum. Please post your questions here
Post Reply
Denoson
Posts: 71
Joined: Tue Jan 24, 2006 9:25 pm
Contact:

Paste Unicode text

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

Post 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.
Denoson
Posts: 71
Joined: Tue Jan 24, 2006 9:25 pm
Contact:

Unicode

Post by Denoson »

Thanks, now it works :)
rvruOnlyUnicode- necessarily to set or not?
(RichViewEdit1.RTFReadProperties.UnicodeMode = rvruOnlyUnicode)
Can I use rvuMixed?


Image
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

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