RE: FW: Subj: Converting from UCS-2 to UTF-8

From: Dean Harding (
Date: Thu Aug 18 2005 - 22:39:16 CDT

  • Next message: Doug Ewell: "Re: FW: Subj: Converting from UCS-2 to UTF-8"

    Gregg Reynolds wrote:
    > > Wouldn't it be easier to use WideCharToMultiByte and pass in CP_UTF8 as
    > > code page identifier? No need to download 3rd party libraries then.
    > >
    > Could be. I'm afraid I probably mistook the asker's goal; yesterday I
    > had to do exactly the same thing - move data between SQLServer and SAS -
    > but it was batch files so iconv works great. I guess he wants to embed
    > some code, though, so maybe batch processing won't do.

    Ah yes, now that I re-read the original message, it seems you're probably
    right. Well ignore me then.

    Unless you don't mind writing your own filter which just calls
    WideCharToMultiByte to do the work!


    This archive was generated by hypermail 2.1.5 : Thu Aug 18 2005 - 22:40:10 CDT