xingwenge / canal-php

Alibaba mysql database binlog incremental subscription & consumer components Canal's php client[阿里巴巴mysql数据库binlog的增量订阅&消费组件 Canal 的 php 客户端 ] https://github.com/alibaba/canal
384 stars 67 forks source link

不能同步mysql blob类型的字符串数据 #18

Open liqiongfan opened 3 years ago

liqiongfan commented 3 years ago

客户端中,不能同步处理好mysql源表的blog类型的字符串,会有乱码的发生。乱码只产生于 中文字符,英文字符没有问题。 canal版本为1.1.14 canal-python pip客户端为0.4版本

liqiongfan commented 3 years ago

复原的步骤为:

create table test_blog ( id int not null primary key auto_increment, detail blob not null );

insert into test_blog (detail) values("测试");

此时同步这条数据就是乱码。