R
R
rusher2013-06-20 14:27:15
ruby
rusher, 2013-06-20 14:27:15

How to change the encoding on the clipboard

I load the text into the clipboard and when I try to paste it into the form, it turns out kryakozyabrya. How can I change the encoding?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AJ, 2013-06-20
@2ball

Those. Do you think that this is enough to answer the question?
1) OS?
2) How do you download?
3) Where is the form?
4) What is the encoding of the copied text?
5) What is the form encoding?
PS - in principle, the encoding of the content in the clipboard is done only by overwriting this content. Those. take the contents, recode, write back.

S
SunSB, 2013-06-20
@SunSB

Before copying to the clipboard, you need to set the layout (select language).
kbd := GetActiveKbdLayout;
SetKbdLayout( ENGLISH );
Clipboard.AsText := lboxLog.Items.Text;
SetKbdLayout( kbd );
I don't remember the details, it was a long time ago. author of the solution that helped me

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question