Clipboard Characters Lost

Just starting out? Need help? Post your questions and find answers here.
Learner
User
User
Posts: 15
Joined: Tue Dec 14, 2004 1:32 am
Location: Australia

Clipboard Characters Lost

Post by Learner »

I am attempting to capture clipboard text from PDF viewer text copies(cntrl c). However sometimes certain characters like ff,ffi and f end up being replaced by a "?" in the string after clipboard capture.
Cannot figure out why this is happening. If I paste to notepad the text is fine.

Code: Select all

ClipData= GetClipboardText()  
Debug "clipdata: "+clipdata
Would greatly appreciate any help.

John
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: Clipboard Characters Lost

Post by Bisonte »

If you use PB <5.5 try to turn on "create Unicode executable" at Compiler Options... This may helps.
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
Post Reply