Skip to content

Lost characters when send non-ascii strings #3

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"!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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