Re: SetClipBoard returns Junk characters!
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 22:33:37 -0700
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:tjcu84dhbf3me1090c257bo8pf4h66onba@xxxxxxxxxx
...as it is documented to do.
How does Windows know which code page to use when converting from ANSI ->
UNICODE? It is a 1:many mapping. If the wrong Unicode characters are being
stored in the clipboard, obviously something is wrong. The solution is for
the OP to use CStringW to explicitly create a wide (Unicode) string from the
Ansi and put that into the clipboard using CF_UNICODETEXT. As you say, this
downconverts to CF_TEXT but cannot guarantee correct results due to loss of
precision.
-- David
.
- Follow-Ups:
- Re: SetClipBoard returns Junk characters!
- From: Joseph M . Newcomer
- Re: SetClipBoard returns Junk characters!
- From: Giovanni Dicanio
- Re: SetClipBoard returns Junk characters!
- Prev by Date: Re: How to limit CWnd minimum size?
- Next by Date: Re: Writing UTF-8 files with no BOM
- Previous by thread: Re: How to limit CWnd minimum size?
- Next by thread: Re: SetClipBoard returns Junk characters!
- Index(es):
Relevant Pages
|