使用Intelli idea调试kafka low consumer时,由于broker存储的message有中文, idea中console端是可以正确显示的 然后mvn package打包到服务器上执行,结果中文乱码. 然后在kafka consumer代码中byte转为string时,使用了各种编码 String mes = new String(bytes,"UTF-8"); String mes = new String(bytes,"GBK"); Str…
最近一直在关注阿里的一个开源项目:OpenMessaging OpenMessaging, which includes the establishment of industry guidelines and messaging, streaming specifications to provide a common framework for finance, e-commerce, IoT and big-data area. The design principles are the…