google-cloud-dataflow - 在 Python 中使用 Apache Beam/Dataflow 读取 UTF-16 csv
问题描述
关于读取 UTF-16 格式的 csv 文件的问题。安装的 Apache Beam 版本为 2.7.0,带有 Python2.7。在 Apache Beam 的 github 上,据说该函数ReadAllFromText(PTransform)
无法处理 UTF-8 [1]。有没有用 Apache Beam 读取 UTF-16 csv 文件的替代方法?
[1] https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/textio.py
解决方案
推荐阅读
- python - 如何使用列表理解更改子列表中的一个元素
- maven - 由于无法识别的字段,无法将工件上传到 JFrog Artifactory
- jenkins - Jenkins 作业配置字段定义
- r - 错误:必须提取具有单个有效下标的列。x 下标 `var` 的大小为 268,但必须为 1。代码和数据框包括
- azure - Azure 工件 npm 初始化失败
- javascript - 在页面加载时,使用 Javascript 根据其 id 检查单选按钮
- c - 显示“输入一个字符:”两次并在没有输入第二次执行的情况下自动执行函数 Insert() 两次的原因是什么?
- python-3.x - Get index of a list with tuples in which the first element of the tuple matches pattern
- javascript - 在页面上选择新创建的元素 - puppeteer
- r - 在 R 中,打印数据框中人口密度最高的国家