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

From Kovalevski Andrei
Subject Re: Encoding using the Frontend/Backend Protocol TCP/IP
Date
Msg-id 4B057205.6000203@gmail.com
Whole thread Raw
In response to Encoding using the Frontend/Backend Protocol TCP/IP  (Raimon Fernandez <coder@montx.com>)
Responses Re: Encoding using the Frontend/Backend Protocol TCP/IP
List pgsql-general
Hi

could it be that you have errors in your UTF8 string? For example you
might use UTF16 encoding, it can explain why some characters force
errors but others are not. Can you post here the string and its' encoded
version?

Raimon Fernandez wrote:
> 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: Pavel Stehule
Date:
Subject: Re: obtaining ARRAY position for a given match
Next
From: Sam Mason
Date:
Subject: Re: obtaining ARRAY position for a given match