[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Winapi - a minimal but useful Windows API binding
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 9 Jun 2011 19:38:06 +0200
On Thu, Jun 9, 2011 at 6:24 PM, Javier Guerra Giraldez
> IMHO, using (or even suggesting to use) codepages is going backwards.
> if you need anything more than plain 7-bit ASCII (and who doesn't?)
> then just use any decent editor to put UTF8 in the strings.
Ah, but we do not live in such a perfect world, so I must be prepared
to receive strings as either UTF-9 or the current code page, and
convert them appropriately. That is the key point, the rest is
The MultiByteToWideChar reference  in fact warns people that saving
stuff not as UTF-8 or UTF-16 will lead to unhappiness.