Unix Technical Forum

UTF8 question

This is a discussion on UTF8 question within the pgsql Admins forums, part of the PostgreSQL category; --> Hello, If I want data to come out from my DB which is UTF8 into LATIN1 or SQL_ASCII. How ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:28 AM
Abu Mushayeed
 
Posts: n/a
Default UTF8 question


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:28 AM
Ivo Rossacher
 
Posts: n/a
Default Re: UTF8 question

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


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com