pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Mallah <mallah_rajesh@yahoo.com>
To: PFC <lists@boutiquenumerique.com>
To: pgsql-sql@postgresql.org
Subject: Re: Significance of Database Encoding
Date: Sun, 15 May 2005 11:38:29 -0700 (PDT)
Message-ID: <20050515183829.53021.qmail@web31011.mail.mud.yahoo.com> (raw)


--- PFC <lists@boutiquenumerique.com> wrote:
> 
> > +--------------------------------------------------------------------------------------+
> > | &#31169;&#12399;&#12460;&#12521;&#12473;
> > +--------------------------------------------------------------------------------------+
> 
> 	You say it displays correctly in xterm (ie. you didn't see these in your  
> xterm).
> 	There are HTML/XML unicode character entities, probably generated by your  
> mailer from your Unicode cut'n'paste.

That is correct.

Now the question is how to convert from SQL_ASCII to UNICODE. 
Mailing lists suggests to run recode or iconv on the dump file
and restore. The problem is on running iconv with -f US-ASCII
the program aborted:

$ iconv -f US-ASCII -t UTF-8  < test.sql > out.sql
iconv: illegal input sequence at position 114500

Any ideas how the job can be accomplised reliably.

Also my database may contain data in multiple encodings
like WINDOWS-1251 and WINDOWS-1256 in various places
as data has been inserted by different peoples using
different sources and client software.


Regds
Rajesh Kumar Mallah.










> 	Using SQL ASCII to store UTF8 encoded data will work, but postgres won't  
> know that it's manipulating multibyte characters, so for instance the  
> length of a string will be its Byte length instead of correctly counting  
> the characters, collation rules will be funky, etc. And substring() may  
> well cut in the middle of an UTF8 multibyte char which will then screw  
> your application side processing...
> 	Apart from that, it'll work ;)
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



view thread (5+ messages)  latest in thread

Message-ID: <20050515183829.53021.qmail@web31011.mail.mud.yahoo.com>
Permalink:  ../20050515183829.53021.qmail@web31011.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/20050515183829.53021.qmail@web31011.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mallah_rajesh@yahoo.com, lists@boutiquenumerique.com
  Subject: Re: Significance of Database Encoding
  In-Reply-To: <20050515183829.53021.qmail@web31011.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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