Encoding using the Frontend/Backend Protocol TCP/IP - Mailing list pgsql-general

From Raimon Fernandez
Subject Encoding using the Frontend/Backend Protocol TCP/IP
Date
Msg-id A8F7FAA5-A817-4CCE-BA06-BF28B5534AC7@montx.com
Whole thread Raw
In response to Re: Cancelling Requests Frontend/Backend Protocol TCP/IP  (Raimon Fernandez <coder@montx.com>)
Responses Re: Encoding using the Frontend/Backend Protocol TCP/IP
List pgsql-general
Hello,


I'm trying to send some strings that have chars outside from standar ascii, like çñàèó

Once I'm connected, the client and server both uses UT8Encoding.

And I'm sending all the strings encoded in UTF8.

At least the received ones are working, as I get the text exactly as it is, with special chars.

But when I'm trying to update a row using some of them, I'm getting an error:

ERROR
08P01
Invalid string in message
pqformat.c
691
pq_getmstring
Invalid Front End message type 0
postgres.c
408
socketbackend
you have been disconected

How should I encode ????


thanks,

regards,


r.

pgsql-general by date:

Previous
From: Scott Bailey
Date:
Subject: Re: obtaining ARRAY position for a given match
Next
From: Pavel Stehule
Date:
Subject: Re: obtaining ARRAY position for a given match