pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
UTF8 characters
4+ messages / 4 participants
[nested] [flat]

* UTF8 characters
@ 2006-07-21 16:05  PostgreSQL Admin <postgres@productivitymedia.com>
  0 siblings, 1 reply; 4+ messages in thread

From: PostgreSQL Admin @ 2006-07-21 16:05 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin

I had my database set to SQL_ASCII and switched to UTF8, but now I
notice that I must add a slash for periods/dots ( \. vs . ) to insert
into varchar.   Is this normal?

Thanks,
J



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: UTF8 characters
@ 2006-07-21 16:42  Peter Eisentraut <peter_e@gmx.net>
  parent: PostgreSQL Admin <postgres@productivitymedia.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Peter Eisentraut @ 2006-07-21 16:42 UTC (permalink / raw)
  To: pgsql-admin; +Cc: PostgreSQL Admin <postgres@productivitymedia.com>

PostgreSQL Admin wrote:
> I had my database set to SQL_ASCII and switched to UTF8, but now I
> notice that I must add a slash for periods/dots ( \. vs . ) to insert
> into varchar.   Is this normal?

No.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: UTF8 characters
@ 2006-07-25 10:27  adey <adey11@gmail.com>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 4+ messages in thread

From: adey @ 2006-07-25 10:27 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-admin@postgresql.org, "PostgreSQL Admin" <postgres@productivitymedia.com>

I had the same problem when upgrading v7.4 database to v8, SQL-ASCII to UTF8
- we had to replace single backslashes with double backslashes in the
v7 database to get the data to display correctly, then dump and restore in
v8 / UTF8. Have we done something wrong please?

On 7/22/06, Peter Eisentraut <peter_e@gmx.net> wrote:
>
> PostgreSQL Admin wrote:
> > I had my database set to SQL_ASCII and switched to UTF8, but now I
> > notice that I must add a slash for periods/dots ( \. vs . ) to insert
> > into varchar.   Is this normal?
>
> No.
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: UTF8 characters
@ 2006-07-25 17:39  Ivo Rossacher <rossacher@bluewin.ch>
  parent: adey <adey11@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Ivo Rossacher @ 2006-07-25 17:39 UTC (permalink / raw)
  To: pgsql-admin

Well the server does have the capability to convert from the server encoding 
to the client encoding and the other way around. To get this working you need 
a server encoding which can be convertet to the clientencoding. UNICODE 
(UTF8) is a good starting point here.
Now the server needs to know waht the encoding of the client is.
You can set the client encoding from the client by sending "set 
client_encoding to <whatever it is>" to the server after the connection is 
started.
There are other ways which can solve other problems (see character set support 
in the manual), for my application this way wroked best and makes it simple 
to work with different clientencodings.

Best regards
Ivo

Am Dienstag, 25. Juli 2006 12.27 schrieb adey:
> I had the same problem when upgrading v7.4 database to v8, SQL-ASCII to
> UTF8 - we had to replace single backslashes with double backslashes in the
> v7 database to get the data to display correctly, then dump and restore in
> v8 / UTF8. Have we done something wrong please?
>
> On 7/22/06, Peter Eisentraut <peter_e@gmx.net> wrote:
> > PostgreSQL Admin wrote:
> > > I had my database set to SQL_ASCII and switched to UTF8, but now I
> > > notice that I must add a slash for periods/dots ( \. vs . ) to insert
> > > into varchar.   Is this normal?
> >
> > No.
> >
> > --
> > Peter Eisentraut
> > http://developer.postgresql.org/~petere/
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Have you searched our list archives?
> >
> >               http://archives.postgresql.org



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-07-25 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-07-21 16:05 UTF8 characters PostgreSQL Admin <postgres@productivitymedia.com>
2006-07-21 16:42 ` Peter Eisentraut <peter_e@gmx.net>
2006-07-25 10:27   ` adey <adey11@gmail.com>
2006-07-25 17:39     ` Ivo Rossacher <rossacher@bluewin.ch>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox