Upload csv file to run batch , this featrue can not support Simplified Chinese encoding. #21744

Open
opened 2026-02-21 20:14:07 -05:00 by yindo · 1 comment
Owner

Originally created by @zhuzeyu22 on GitHub (Jan 18, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

latest version

Cloud or Self Hosted

Cloud

Steps to reproduce

1、Establish a workflow with variables.
2、Upload GBK encoded CSV files for batch execution.

✔️ Expected Behavior

1、Output string. √

Actual Behavior

1、Output garbled code.

Image
Originally created by @zhuzeyu22 on GitHub (Jan 18, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version latest version ### Cloud or Self Hosted Cloud ### Steps to reproduce 1、Establish a workflow with variables. 2、Upload GBK encoded CSV files for batch execution. ### ✔️ Expected Behavior 1、Output string. √ ### ❌ Actual Behavior 1、Output garbled code. <img width="1093" height="447" alt="Image" src="https://github.com/user-attachments/assets/7b8f12e1-6fcf-450d-bd0c-29fb379bde36" />
yindo added the 🐞 bugstalecloud labels 2026-02-21 20:14:07 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 18, 2026):

Dify batch CSV upload only supports UTF-8 encoding—GBK and other non-UTF-8 encodings will cause garbled output, especially with Simplified Chinese text (reference). There’s no option to select encoding or autodetect GBK in the current version.

To fix this, convert your CSV file to UTF-8 before uploading. You can do this in Notepad++ (open the file, select "Encoding" → "Convert to UTF-8", then save), VS Code (open the file, click the encoding label in the status bar, choose "Save with encoding" → "UTF-8"), or with a command-line tool like iconv:

iconv -f gbk -t utf-8 input.csv -o output.csv

Make sure your CSV uses commas as delimiters, has no extra columns or blank lines, and is saved as UTF-8 without BOM (reference). This will ensure your batch runs work as expected.

If you need GBK support in the future, keep an eye on release notes or GitHub issues for updates.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 18, 2026): <!-- Answer --> Dify batch CSV upload only supports UTF-8 encoding—GBK and other non-UTF-8 encodings will cause garbled output, especially with Simplified Chinese text ([reference](https://github.com/langgenius/dify/issues/31190)). There’s no option to select encoding or autodetect GBK in the current version. To fix this, convert your CSV file to UTF-8 before uploading. You can do this in Notepad++ (open the file, select "Encoding" → "Convert to UTF-8", then save), VS Code (open the file, click the encoding label in the status bar, choose "Save with encoding" → "UTF-8"), or with a command-line tool like iconv: ```bash iconv -f gbk -t utf-8 input.csv -o output.csv ``` Make sure your CSV uses commas as delimiters, has no extra columns or blank lines, and is saved as UTF-8 without BOM ([reference](https://github.com/langgenius/dify/issues/22075)). This will ensure your batch runs work as expected. If you need GBK support in the future, keep an eye on release notes or GitHub issues for updates. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/75155bb1-0955-484b-aa82-a7fd6782cb63?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/75155bb1-0955-484b-aa82-a7fd6782cb63?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/75155bb1-0955-484b-aa82-a7fd6782cb63?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/75155bb1-0955-484b-aa82-a7fd6782cb63?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/75155bb1-0955-484b-aa82-a7fd6782cb63?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/75155bb1-0955-484b-aa82-a7fd6782cb63?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/75155bb1-0955-484b-aa82-a7fd6782cb63?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Dify%20batch%20CSV%20upload%20only%20supports%20UTF-8%20encoding%E2%80%94GBK%20and%20other%20non-UTF-8%20encodings%20will%20cause%20garbled%20output%2C%20especially%20with%20Simplified%20Chinese%20text%20%28%5Breference%5D%28https%3A//github.com/langgenius/dify/issues/31190%29%29.%20There%E2%80%99s%20no%20option%20to%20select%20encoding%20or%20autodetect%20GBK%20in%20the%20current%20version.%0A%0ATo%20fix%20this%2C%20convert%20your%20CSV%20file%20to%20UTF-8%20before%20uploading.%20You%20can%20do%20this%20in%20Notepad%2B%2B%20%28open%20the%20file%2C%20select%20%22Encoding%22%20%E2%86%92%20%22Convert%20to%20UTF-8%22%2C%20then%20save%29%2C%20VS%20Code%20%28open%20the%20file%2C%20click%20the%20encoding%20label%20in%20the%20status%20bar%2C%20choose%20%22Save%20with%20encoding%22%20%E2%86%92%20%22UTF-8%22%29%2C%20or%20with%20a%20command-line%20tool%20like%20iconv%3A%0A%0A%60%60%60bash%0Aiconv%20-f%20gbk%20-t%20utf-8%20input.csv%20-o%20output.csv%0A%60%60%60%0A%0AMake%20sure%20your%20CSV%20uses%20commas%20as%20delimiters%2C%20has%20no%20extra%20columns%20or%20blank%20lines%2C%20and%20is%20saved%20as%20UTF-8%20without%20BOM%20%28%5Breference%5D%28https%3A//github.com/langgenius/dify/issues/22075%29%29.%20This%20will%20ensure%20your%20batch%20runs%20work%20as%20expected.%20%0A%0AIf%20you%20need%20GBK%20support%20in%20the%20future%2C%20keep%20an%20eye%20on%20release%20notes%20or%20GitHub%20issues%20for%20updates.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/31190)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21744