Page 1 of 1

Copy & Paste UNICODE text

Posted: Tue Nov 24, 2009 1:34 pm
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?

Posted: Tue Nov 24, 2009 5:07 pm
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

Doesn´t work

Posted: Wed Nov 25, 2009 9:25 am
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.

Posted: Wed Nov 25, 2009 6:38 pm
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?

Works!!!

Posted: Thu Nov 26, 2009 8:42 am
by nokl
Hey Sergey!
Great, the rvoAutoCopyUnicodeText = true did it,
thanks a lot!!

Posted: Sun May 29, 2011 4:14 pm
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

Posted: Sun May 29, 2011 6:42 pm
by Sergey Tkachenko
It was made default for Delphi 2009/2010/XE.