PDA

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
End_Object

Object oApplication is a cApplication

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

Set psAutoOpenWorkspace to "NOVAX.WS"

End_Object

// 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.
15753

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

Right click and select Copy to Clipboard from the context menu
15755
Open Notepad++ and paste the text from the clipboard.
15756
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
Alan,

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!).