Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Unicode to clipboard
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01414441
Message ID:
01414749
Views:
40
Hi Christof,

Thanks for your reply.

When we copy Unicode text from Excel and paste it into VFP, VFP converts the Unicode text to MBCS. However if the Unicode text in clipboard is created by APIs in VFP and being pasted into VFP itself, the conversion does not take place because the text is not from Excel.

Is there any way to cheat VFP that the Unicode text in clipboard is from Excel? I assume there is a flag in the Windows clipboard (or in VFP itself) marking that the Unicode text is from Excel. Can we change this flag so that VFP will do the conversion from Unicode to MBCS while pasting into itself?

Ben


>Hi Ben,
>
>>Thanks for your info. Will there be any trick to make VFP think that the unicode text comes from another Unicode application, like Excel, so that it will do the conversion in pasting?
>
>I'm not sure I understand the question... VFP will always perform a conversion on Unicode content in the clipboard when VFP, because VFP can't handle Unicode at all.
>
>Is your problem that VFP should perform a conversion to multibyte character sets, but isn't doing this when pasting from the clipboard? In this case, you need to read the clipboard contents using the API function and use STRCONV() to convert Unicode to MBCS.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform