You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "Tsukasa007 (via GitHub)" <gi...@apache.org> on 2025/07/22 02:29:17 UTC
[I] [Bug] [Mysql source] There is Chinese character garbling [seatunnel]
Tsukasa007 opened a new issue, #9603:
URL: https://github.com/apache/seatunnel/issues/9603
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
### What happened
Hello, I'm also encountering this issue. Here is my job configuration. Could you take a look? The fields in the automatically created tables are garbled.
<img width="845" height="236" alt="Image" src="https://github.com/user-attachments/assets/94f06df8-4645-4a6c-a031-cda0249951ea" />
### SeaTunnel Version
2.3.10
### SeaTunnel Config
```conf
env {
parallelism = 1
job.mode = "STREAMING"
checkpoint.interval = 10000
}
source {
MySQL-CDC {
base-url = "jdbc:mysql://172.16.21.169:3307/czhl_new_column?characterEncoding=UTF-8"
username = "root"
password = "123"
database-names = ["czhl_new_column"]
table-names = ["czhl_new_column.def_user"]
startup.mode = "initial"
plugin_output = "source1"
}
}
transform {
Sql {
query = "SELECT id as `user_id`, username as `user_username拉阿拉`, nick_name as `user_nick_name`, mobile as `user_mobile` FROM dual"
plugin_input = "source1"
plugin_output = "transform1"
}
}
sink {
jdbc {
plugin_input = "transform1"
url = "jdbc:mysql://172.16.21.169:3307/seatunnel_sync_test?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true"
driver = "com.mysql.cj.jdbc.Driver"
user = "root"
password = "123"
generate_sink_sql = true
database = "seatunnel_sync_test"
table = "user_employee"
primary_keys = ["user_id"]
schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
data_save_mode = "APPEND_DATA"
}
}
```
### Running Command
```shell
null
```
### Error Exception
```log
null
```
### Zeta or Flink or Spark Version
_No response_
### Java or Scala Version
_No response_
### Screenshots
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql source] There is Chinese character garbling [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on issue #9603:
URL: https://github.com/apache/seatunnel/issues/9603#issuecomment-6376315817
Closing this issue as completed after rechecking the original report and its resolution.
The original reporter confirmed that adding `Content-Type: text/plain; charset=utf-8` to the HTTP submission request resolved the garbled fields in automatically created tables.
Resolution evidence: [the original reporter's confirmation](https://github.com/apache/seatunnel/issues/9603#issuecomment-3105373397).
<!-- seatunnel-closure-audit:20261023:9603 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql source] There is Chinese character garbling [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo closed issue #9603: [Bug] [Mysql source] There is Chinese character garbling
URL: https://github.com/apache/seatunnel/issues/9603
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql source] There is Chinese character garbling [seatunnel]
Posted by "Tsukasa007 (via GitHub)" <gi...@apache.org>.
Tsukasa007 commented on issue #9603:
URL: https://github.com/apache/seatunnel/issues/9603#issuecomment-3105373397
Add Content-Type: text/plain; charset=utf-8 to the HTTP request headers to resolve the issue.
~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [Mysql source] There is Chinese character garbling [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9603:
URL: https://github.com/apache/seatunnel/issues/9603#issuecomment-3216009794
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org