【问题标题】:How to set encoding to "UTF8 without bom" in Azure Blob output dataset如何在 Azure Blob 输出数据集中将编码设置为“UTF8 without bom”
【发布时间】:2018-11-17 00:00:26
【问题描述】:

我目前正在使用 Azure 数据工厂生成每日 .json 输出。我的合作伙伴需要编码为 UTF8 但没有 BOM 字符。

在 AzureDataFactory 的配置文件中有没有这样做? 我发现了 encodingName 属性:

        "typeProperties": {
        "fileName": "prod-file-{date}.json",
        "folderPath": "folder",
        "format": {
            "type": "JsonFormat",
            "encodingName":""
        },

但是encodingName parameters 的匹配列表似乎不符合我的需求。

提前致谢。

【问题讨论】:

  • 在 json 文件格式中,编码名称的默认值为 UTF-8
  • 如果您有物理配置文件并且可以上传,那么您可以在 NotePad++ 中通过其编码菜单进行更改。
  • 我遇到了完全相同的问题 - 您找到解决方案了吗?

标签: azure azure-blob-storage azure-data-factory


【解决方案1】:

对我来说,将编码设置为 UTF-8 并让文件格式文本创建 UTF-8 BOM 文件。

将编码留空使用了没有 BOM 的 UTF-8 的明显默认值。

没有意义,但希望它也适用于 JSON。

【讨论】:

    猜你喜欢
    • 2016-12-29
    • 2014-02-12
    • 2023-04-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多