You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug(Please use English)
A clear and concise description of what the bug is.
Environment :
Flink version : 1.13.1
Flink CDC version: 2.2.1
Database and version: 8.0.28
To Reproduce
Steps to reproduce the behavior:
mysql数据库编码为utf-8,A库的a1表的aa1字段的编码为ucs2,然后使用flink cdc读取数据,存量数据读取是乱码的;
读取binlog的新增数据是不乱码的;
然后我查了下读取binlog对aa1字段使用的utf-16编码,使用的也是utf-16解码;
读取存量快照的时候对usc2是utf-8编码(可能是默认),utf-16解码,所以乱码了