Обсуждение: UTF8 question

Поиск
Список
Период
Сортировка

UTF8 question

От
"Abu Mushayeed"
Дата:
Hello,

If I want data to come out from my DB which is UTF8 into LATIN1 or
SQL_ASCII. How do I do it. How do I handle the "�" characters. WIll it come
out the same as in the DB?

Thanks
Abu



Re: UTF8 question

От
Ivo Rossacher
Дата:
You can set the client encoding to latin1 to make the database convert the
strings for you. Read also chapter 20.2. Character Set Support of the server
documentation about the different options for setting the client encoding.
By the way SQL_ASCII is not a clientencoding in that sens but the lack of any
encoding at the server side (The server can not do most of the
transformations possible with other encodings). So the client is fully
responsible for the encoding (which is critical in a lot of applications,
especially when different clients have to be supported).

Regards
Ivo

Am Freitag, 4. August 2006 22.02 schrieb Abu Mushayeed:
> Hello,
>
> If I want data to come out from my DB which is UTF8 into LATIN1 or
> SQL_ASCII. How do I do it. How do I handle the "�" characters. WIll it
> come out the same as in the DB?
>
> Thanks
> Abu
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster