Skip to content

Lost characters when send non-ascii strings #3

@cw-flying

Description

@cw-flying

When Send Chinese message, lost some characters...

 kafkaesque.produce({topic: 'testing', partition: 0},
        '测aaa',
        function(err, response) {
                if (err) {
                    console.log(err);
                } else {

                }
                console.log(response);
            });

Run kafka consumer on cosole

flying@Server:~/kafka$ bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic testing
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
测a

It should be "测aaa", but only received "测a"!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions