Re: can i use to_ascii function ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Στις Παρασκευή 23 Φεβρουάριος 2007 14:12, ο/η j n έγραψε:
> 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 ?

Trying to resort to iso-8859-2 (the western slavic script) is not doing you 
any good, since you simply recode those chars in UTF-8 to their latin2
counterparts.

How about 
translate('your slovak text','éěáäš','eeaas');

>
> pls help

-- 
Achilleas Mantzios


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux