Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
>output_handler=mb_output_handler This helped me to fix any output to the browser properly, so I don't need to do any utf8_decode() any more, thanks. > Setting it to "7" won't let me even echo something else. Right, it's strange, but true... :-( > mbstring.detect_order = UTF-8,eucjp-win,sj

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
On 7/21/07, aldnin <[EMAIL PROTECTED]> wrote: >> When I try to send this query (select 'lacarrière' as test;) to a UTF8 >> initialized pgsql-database (8.2.4) from PHP 5.2.3 I get this error: >> >> ERROR: invalid byte sequence for encoding "UTF8&quo

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
> You did not answer the most important question. What, if any, output > buffering are you using? Are you using the mbstring module? If so, is > it set to overload the old string functions? Well, i checked for Multi Byte String functions, and it was enabled and configured before compiling with

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
> Please configure your email client so we don't receive 5 copies of your > mail. Just fixed that issue, don't be afraid of that in the future. > This indicates that PHP not using UTF-8. That output is typical of > UTF-8 output as Latin characters. Well, maybe the output is not correct - when r

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
> My guess is that your PHP is not setup to handle UTF8, and is really > sending something else. UTF8 is the default client encoding because that > is the encoding of the database. It does not mean that PHP has set the > right one. Before running your test, try executing this: "SET > client_encodin

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
> My guess is that your PHP is not setup to handle UTF8, and is really > sending something else. UTF8 is the default client encoding because that > is the encoding of the database. It does not mean that PHP has set the > right one. Before running your test, try executing this: "SET > client_encodin

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
> My guess is that your PHP is not setup to handle UTF8, and is really > sending something else. UTF8 is the default client encoding because that > is the encoding of the database. It does not mean that PHP has set the > right one. Before running your test, try executing this: "SET > client_encodin

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
> My guess is that your PHP is not setup to handle UTF8, and is really > sending something else. UTF8 is the default client encoding because that > is the encoding of the database. It does not mean that PHP has set the > right one. Before running your test, try executing this: "SET > client_encodin

Re: [PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
> My guess is that your PHP is not setup to handle UTF8, and is really > sending something else. UTF8 is the default client encoding because that > is the encoding of the database. It does not mean that PHP has set the > right one. Before running your test, try executing this: "SET > client_encodin

[PHP-DB] PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"

2007-07-21 Thread aldnin
When I try to send this query (select 'lacarrière' as test;) to a UTF8 initialized pgsql-database (8.2.4) from PHP 5.2.3 I get this error: ERROR: invalid byte sequence for encoding "UTF8": 0xe87265 I use pg_query for the query delivery. Client Encoding is set to: client_encoding -