Copy & Paste UNICODE text

General TRichView support forum. Please post your questions here
Post Reply
nokl
Posts: 3
Joined: Tue Nov 24, 2009 1:21 pm
Location: Austria,Wels

Copy & Paste UNICODE text

Post by nokl »

I have entered some UNICODE characters (japanese text, e.g. 山本和彦) into the TRichView control.
When i copy some snippets with japanese text from TRichView into the clipboard (ctrl+insert) and then paste it into another UNICODE-able editor, I only get some boring ???? (questionmarks). No unicode is copied.
What am I doing wrong?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

To support Unicode completely, some changes must be made in values of properties, especially if you use Delphi version prior to 2009.
See http://www.trichview.com/forums/viewtopic.php?t=70
nokl
Posts: 3
Joined: Tue Nov 24, 2009 1:21 pm
Location: Austria,Wels

Doesn´t work

Post by nokl »

Hi,

I have checked the TRichView settings regarding to your link.
TRichViewEdit properties:

- RTFReadProperties:
CharSetForUnicode = DEFAULT_CHARSET
UnicodeMode = rvruOnlyUnicode
UseCharSetForUnicode = true

- TextStyles[0]:
CharSet = DEFAULT_CHARSET
Unicode = true

TRichView does already support UNICODE strings (e.g. chinese text).

If you copy chinese text inside the TRichview control from one position to another , it works.

But if you copy these chinese characters from TRichView to another UNICODE editor then only ?????? appears.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What OS do you use?
Does the same thing happen when you copy to Notepad?
Do you have rvoAutoCopyUnicodeText included in RichViewEdit.Options?
nokl
Posts: 3
Joined: Tue Nov 24, 2009 1:21 pm
Location: Austria,Wels

Works!!!

Post by nokl »

Hey Sergey!
Great, the rvoAutoCopyUnicodeText = true did it,
thanks a lot!!
lkessler
Posts: 112
Joined: Thu Sep 01, 2005 9:00 pm
Location: Winnipeg, Manitoba, Canada
Contact:

Post by lkessler »

I was having this problem as well. Glad I was able to find it in the support forum.

Maybe now that Unicode is becoming the standard, the default for rvoAutoCopyUnicodeText should be true.

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

Post by Sergey Tkachenko »

It was made default for Delphi 2009/2010/XE.
Post Reply