SSIS: Code page goes back to 65001

前端 未结 4 1450
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 16:59

In an SSIS package that I\'m writing, I have a CSV file as a source. On the Connection Manager General page, it has 65001 as the Code page (I was testing something)

4条回答
  •  旧巷少年郎
    2021-02-02 17:28

    65001 Code page = Unicode (UTF-8)

    Based on this Microsoft article (Flat File Connection Manager):

    Code page
    Specify the code page for non-Unicode text.

    Also

    You can configure the Flat File connection manager in the following ways:

    Specify the file, locale, and code page to use. The locale is used to interpret locale-sensitive data such as dates, and the code page is used to convert string data to Unicode.

    So when the flat file has a Unicode encoding:

    • Unicode, UTF-8, UTF-16, UTF-32

    Then this property cannot be changed, it will always return to it original encoding.

    For more infor about the Code Page identifiers, you can refer to this article:

    • Code Page Identifiers

提交回复
热议问题