Sample script to reproduce issues with the original StrClb func
Unicode true
RequestExecutionLevel user
!include StrFunc.nsh
${StrClb}
Function .onInit
StrCpy $0 "Chào thế giới!" ;String with any Unicode characters
${StrClb} $1 $0 ">"
MessageBox MB_OK "Step 1.$\nSent to clipboard unicode string:$\n$\n----------$\n$0$\n----------$\n$\nCheck the contents of the clipboard, then press OK."
${StrClb} $0 "" ""
MessageBox MB_OK "Step 2.$\nClipboard cleared.$\nCopy the new text to the clipboard, then press OK."
${StrClb} $0 "" "<"
MessageBox MB_OK "Step 3.$\nGet from clipboard:$\n$\n----------$\n$0$\n----------"
Quit
FunctionEnd
Section
SectionEnd
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sample script to reproduce issues with the original StrClb func