return encoding results
return encoding results
От:
Emi Lu <emilu@encs.concordia.ca>
Дата:
Hello,
Does psql provide function that can return specific encoding results? For example,
select function_name('é', unicode);
To return: \u00e9
Thanks a lot!
Emi
--
select function_name('á', unicode); To return: \u00e0
... ...
á \u00e0 Á \u00c0
à \u00e1 À \u00c1
â \u00e2 Â \u00c2
é \u00e9 É \u00c9
è \u00e8 È \u00c8
ê \u00ea Ê \u00ca
î \u00ee Î \u00ce
ç \u00e7 Ç \u00c7
Re: return encoding results
От:
Andreas Kretschmer <akretschmer@spamfence.net>
Дата:
Emi Lu wrote:
> Hello,
>
> Does psql provide function that can return specific encoding results? For
> example,
>
> select function_name('é', unicode);
Maybe convert(), see:
http://www.postgresql.org/docs/9.3/interactive/functions-string.html
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°