Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Copying and pasting from browser to LMDEdit

I'm curious, how does copying and pasting text from a web page shown in a browser to an LMDEdit component work with regards to character encoding?

It seems there may be some issues copying some Unicode characters from a browser and pasting it into an LMDEdit component even though the document being pasted into is UTF-8.

Are character encoding issues with copying from other programs and pasting into LMDEdit components handled properly?

Thanks.

Comments

  • 2 Comments sorted by Votes Date Added
  • Posts: 0 Accepted Answer Vote Up0Vote Down
    Hi,

    We use standard VCL TClipboard class to copy/paste text. This class itself use standard Windows API, which is the only way to access clipboard. 
    I think, in Unicode version UTF16 is always used to transfer text (like in any other Unicode Windows API), and basically the text itself should be converted to it by the browser before copying to clipboard.
Sign In or Register to comment.