Run in CLI
'Copy Content
FileName = "D:\Temp\test.pas"
Dim STools, TextBlob
Set STools = DOpus.Create.StringTools
With DOpus.FSUtil.OpenFile(FileName)
Set TextBlob = .Read()
.Close
End With
FileContent = STools.Decode(TextBlob, "UTF-8")
DOpus.output FileContent 'The log window output is normal
DOpus.SetClip FileContent
DOpus.output "========"
DOpus.output DOpus.GetClip("text") ' There is garbled code.
Select "Paste" in the background menu of the file list, the text file will be garbled
Adjusting "clipbord_text_encoding = utf8nobom" is also invalid
test.zip (5.0 KB)