Recent

Author Topic: [SOLVED] Copying Unicode characters to the clipboard  (Read 2894 times)

LRS

  • New member
  • *
  • Posts: 7
[SOLVED] Copying Unicode characters to the clipboard
« on: June 04, 2014, 12:41:48 am »
How are Unicode characters copied to the clipboard with Lazarus (in a platform-independent way)? I have tried, on Fedora Linux with Lazarus 1.0.10

Code: [Select]
Clipboard.AsText := MyUnicodeString;
but the Unicode characters become garbled in the clipboard.
« Last Edit: June 10, 2014, 12:37:38 am by LRS »

LRS

  • New member
  • *
  • Posts: 7
Re: Copying Unicode characters to the clipboard
« Reply #1 on: June 09, 2014, 09:58:01 pm »
It seems there is something unique about my setup which is causing this problem, because testing on a bunch of other platforms was completely successful. Replicating my setup as best as possible in a VirtualBox virtual machine did not reproduce the problem. Since it's unlikely to affect many of the users of my app, it's no longer a priority, but it would be nice to know what's causing it and (or just) how to solve it. More details on my setup in case anybody has any ideas:

  • Fedora 20, 64 bit, running on an ASUS laptop, with all packages up to date (i.e. running "yum update" results in "No packages marked for update")
  • KDE desktop (works fine when I run it under the GNOME desktop on the same machine)
  • Lazarus 1.0.10 (but running a version of my app built in a virtual machine with Lazarus 1.2.2 doesn't fix the problem)

LRS

  • New member
  • *
  • Posts: 7
Re: Copying Unicode characters to the clipboard
« Reply #2 on: June 10, 2014, 12:37:14 am »
Solved by upgrading to Lazarus 1.2.2. Why I didn't try that at the start I don't know. Sorry for the waste of bandwidth.

 

TinyPortal © 2005-2018