Re: PHP + PostgreSQL: invalid byte sequence for encoding "UTF8"
| From: | aldnin | Date: | Sat, 21 Jul 2007 19:42:54 +0000 |
| Subject: | Re: PHP + PostgreSQL: invalid byte sequence for encoding "UTF8" | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43836@lists.php.net to get a copy of this message | ||
> 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 "=all".
After performing the query with pg_query, fetching the result with pg_fetch_all and putting the utf8
string into $dbString I tried to detect the encoding with:
mb_detect_encoding($dbSring)
I tells me:
ASCII
The content of $dbString is:
lacarrière
I overloaded the mbstring variables with:
mbstring.func_overload = 6
Setting it to "7" won't let me even echo something else.
mbstring.encoding_translation = On
mbstring.internal_encoding = UTF8
That's it, rest is default.
Is it possible for mbstring to overload the pg-functions I need?