pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: j n <jneuschld@gmail.com>
To: pgsql-admin@postgresql.org
Subject: can i use to_ascii function ?
Date: Fri, 23 Feb 2007 13:12:53 +0100
Message-ID: <46f93e0d0702230412i7a576ef9jd85c2823fa2c65e5@mail.gmail.com> (raw)

Hi

i need to get rid of acute, and other special symbols from letters. Is any
way how to do it easy in postgres ?

i need conversion like this from slovak language ... :

é, ě -> e
á, ä -> a
š -> s

i tried :

SELECT to_ascii('ščďť')

i get an error : ERROR:  encoding conversion from UTF8 to ASCII not
supported

that i found something like this

SELECT convert('ščďť', 'UTF8', 'LATIN1')

i get an error : ERROR:  character 0xc5a1 of encoding "UTF8" has no
equivalent in "LATIN1"

Is any way how to do it ?
If there is not build in support for this conversion can i create my own ?

pls help


view thread (5+ messages)  latest in thread

Message-ID: <46f93e0d0702230412i7a576ef9jd85c2823fa2c65e5@mail.gmail.com>
Permalink:  ../46f93e0d0702230412i7a576ef9jd85c2823fa2c65e5@mail.gmail.com/
Also on:    postgresql.org/message-id/46f93e0d0702230412i7a576ef9jd85c2823fa2c65e5@mail.gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jneuschld@gmail.com
  Subject: Re: can i use to_ascii function ?
  In-Reply-To: <46f93e0d0702230412i7a576ef9jd85c2823fa2c65e5@mail.gmail.com>
  References: <46f93e0d0702230412i7a576ef9jd85c2823fa2c65e5@mail.gmail.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