You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Marco Di Falco <ma...@dedalus.eu> on 2020/01/17 11:17:57 UTC

Kafka encoding UTF-8 problem

Hello guys!
I have a producer and consumer running in a windows shell.
I write this message ‘questo è un test’ and in consumer receive this: “questo ´┐¢ un test” .

What properties should I use to set up character coding in utf-8?
thank you
Marco

Re: Kafka encoding UTF-8 problem

Posted by "M. Manna" <ma...@gmail.com>.
Hi Marco,

On Fri, 17 Jan 2020 at 13:08, Marco Di Falco <ma...@dedalus.eu>
wrote:

> Hi.
> I'm sorry, I'm new to kafka and I'm afraid I haven't understood your
> question.
> How do I try a serialization / deserialization if I communicate in two
> windows shell? I have no explicit serialization / deserialization,
> communication is transparent to me.
> I think I have to set a kafka properties for this problem, but I don't
> know what it can be.
> Thank you
>
> -----Messaggio originale-----
> Da: M. Manna <ma...@gmail.com>
> Inviato: venerdì 17 gennaio 2020 13:25
> A: users@kafka.apache.org
> Oggetto: Re: Kafka encoding UTF-8 problem
>
> Hi,
>
>
> On Fri, 17 Jan 2020 at 11:18, Marco Di Falco <ma...@dedalus.eu>
> wrote:
>
> > Hello guys!
> > I have a producer and consumer running in a windows shell.
> > I write this message ‘questo è un test’ and in consumer receive this:
> > “questo ´┐¢ un test” .
> >
> > What properties should I use to set up character coding in utf-8?
> > thank you
> > Marco
>
>
> Have you tried using UTF-8 bytes when serialising/deserialising ?
>
> >
> >
>

 I think if you follow official Kafka docs - it explains quite nicely how
to set this up.

R: Kafka encoding UTF-8 problem

Posted by Marco Di Falco <ma...@dedalus.eu>.
Hi.
I'm sorry, I'm new to kafka and I'm afraid I haven't understood your question.
How do I try a serialization / deserialization if I communicate in two windows shell? I have no explicit serialization / deserialization, communication is transparent to me.
I think I have to set a kafka properties for this problem, but I don't know what it can be.
Thank you

-----Messaggio originale-----
Da: M. Manna <ma...@gmail.com> 
Inviato: venerdì 17 gennaio 2020 13:25
A: users@kafka.apache.org
Oggetto: Re: Kafka encoding UTF-8 problem

Hi,


On Fri, 17 Jan 2020 at 11:18, Marco Di Falco <ma...@dedalus.eu>
wrote:

> Hello guys!
> I have a producer and consumer running in a windows shell.
> I write this message ‘questo è un test’ and in consumer receive this:
> “questo ´┐¢ un test” .
>
> What properties should I use to set up character coding in utf-8?
> thank you
> Marco


Have you tried using UTF-8 bytes when serialising/deserialising ?

>
>

Re: Kafka encoding UTF-8 problem

Posted by "M. Manna" <ma...@gmail.com>.
Hi,


On Fri, 17 Jan 2020 at 11:18, Marco Di Falco <ma...@dedalus.eu>
wrote:

> Hello guys!
> I have a producer and consumer running in a windows shell.
> I write this message ‘questo è un test’ and in consumer receive this:
> “questo ´┐¢ un test” .
>
> What properties should I use to set up character coding in utf-8?
> thank you
> Marco


Have you tried using UTF-8 bytes when serialising/deserialising ?

>
>