Search Postgresql Archives

Re: Encoding using the Frontend/Backend Protocol TCP/IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/11/2009, at 17:27, Kovalevski Andrei wrote:

> 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.

It only happens with values like àéïçñ I think UTF8 can handle this ...



> Can you post here the string and its' encoded version?
> 

Original string:
QFUpdate transactions set description='Test ValuesdÇ' where id=113

UTF: 

QFUpdate transactions set description='Test ValuesdÇ' where id=113
5100000046557064617465207472616E73616374696F6E7320736574206465736372697074696F6E3D27546573742056616C75657364C387272077686572652069643D313133

It has also the header Q and the length ...

thanks,

regards,

r.


> 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.
>> 
>>  
> 
> 



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux