View Full Version : Copy to Clipboard does not work correctly with utf-8 source code files

Allan Greis Eriksen
8-Nov-2022, 08:37 AM
Copying the results from the Find Results pane are translated wrong into the clipboard.

Open the studio and create a new base project like this:

Use Windows.pkg
Use cHtmlHelp.pkg
Use cApplication.pkg
Use cConnection.pkg

Object oHtmlHelp is a cHtmlHelp

Object oApplication is a cApplication

Object oConnection is a cConnection
Use LoginEncryption.pkg
Use DatabaseLoginDialog.dg

Set psAutoOpenWorkspace to "NOVAX.WS"


// Comment with

Send Info_Box "Hello World" "DataFlex Basic Project"

Note that I have created a comment with some Danish characters - it does happen in my source files ;)

Open the Find In Files dialog and search for the beginning of the danish characters.

The result is fine and listed in the Find Results pane with the correct characters shown.

Right click and select Copy to Clipboard from the context menu
Open Notepad++ and paste the text from the clipboard.
Note that the text is now shown correctly even though the new text window is opened with default UTF-8 encoding.

Vincent Oorsprong
9-Nov-2022, 05:17 AM

Thanks for reporting. I've duplicate it in 20.1 and will log this.

Dennis Piccioni
26-Dec-2022, 12:46 PM
Hi Allen,

this is fixed in DataFlex 23.0 Alpha 1 (https://support.dataaccess.com/Forums/showthread.php?69311-DataFlex-2023-Alpha-1-released-introducing-FlexTron!).