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

From: Gregg Reynolds (unicode@arabink.com)
Date: Thu Aug 18 2005 - 17:19:36 CDT

  • Next message: N. Ganesan: "28th IUC paper - Tamil Unicode New"

    Magda Danish (Unicode) wrote:
    > Any help with responding to this inquiry would be greatly
    > appreciated. Thanks
    >

    Piece of cake. http://www.gnu.org/software/libiconv/

    On windows, the easiest thing to do is install cygwin, which comes with
    a command line iconv implementation. http://www.cygwin.com/

    Then iconv -f from-encoding -t to-encoding filename

    A partial list of supported encodings (do "iconv -l"):

    ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US
    ISO_646.IRV:1991 US US-ASCII CSASCII
    UTF-8
    ISO-10646-UCS-2 UCS-2 CSUNICODE
    UCS-2BE UNICODE-1-1 UNICODEBIG CSUNICODE11
    UCS-2LE UNICODELITTLE
    ISO-10646-UCS-4 UCS-4 CSUCS4
    UCS-4BE
    UCS-4LE
    UTF-16
    UTF-16BE
    UTF-16LE
    UTF-32
    UTF-32BE
    UTF-32LE
    UNICODE-1-1-UTF-7 UTF-7 CSUNICODE11UTF7
    UCS-2-INTERNAL
    UCS-2-SWAPPED
    UCS-4-INTERNAL
    UCS-4-SWAPPED

    Hope it helps.

    > Magda
    >
    > -----Original Message----- Date/Time: Wed Aug 17 17:34:19 CDT 2005
    > Contact: btimmers@mdsol.com Name: Bradley Timmers
    > Report Type: Other Question, Problem, or Feedback Opt Subject:
    > Converting from UCS-2 to UTF-8
    >
    > Hello,
    >
    > At my company, we store all our data in a Microsoft SQL Server
    > database, which uses UCS-2. However, we have to extract the data via
    > SAS, which uses only UTF-8. We're clearly having compatibility
    > issues, because Japanese kanji that display properly in SQL Server
    > come out as question marks in SAS.
    >
    > Is there a good converter from UCS-2 to UTF-8 out there? I've tried
    > looking here:
    >
    > http://www.unicode.org/Public/PROGRAMS/CVTUTF/
    >
    > But it's not clear to me that I can use any of these programs for
    > UCS-2. I am aware that UTF-16 and UCS-2 are almost identical, but
    > it's the "almost" that worries me. Can you confirm that the converter
    > from UTF-16 to UTF-8 will work for converting from UCS-2 to UTF-8
    > without any loss or corruption of data?
    >
    > Thank you,
    >
    > Brad
    >
    > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- (End of Report)
    >
    >
    >



    This archive was generated by hypermail 2.1.5 : Thu Aug 18 2005 - 17:20:51 CDT