aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ascii.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-08-04 15:45:12 +0000
committerBruce Momjian <bruce@momjian.us>2000-08-04 15:45:12 +0000
commit317ff59cedc77542cae0e0dd1752fda9c0064f47 (patch)
tree7b07c46416af9737d358ec40e0bccb1b0ec186e2 /src/backend/utils/adt/ascii.c
parenta1464e971c4d834925804054cb372086f8ce43aa (diff)
downloadpostgresql-317ff59cedc77542cae0e0dd1752fda9c0064f47.tar.gz
postgresql-317ff59cedc77542cae0e0dd1752fda9c0064f47.zip
to_ascii( text )
- encode 'text' from database encoding to ASCII to_ascii('\256\341k') to_ascii( text, int4 ) - encode 'text' from 'int4' encoding to ASCII to_ascii('\256\341k', 8) to_ascii( text, name ) - encode 'text' from 'name' encoding to ASCII to_ascii('\256\341k', 'LATIN2') Now is supported LATIN1, LATIN2, WIN1250. For other character sets I haven't good resources. Add new encoding is easy... If encoding is not supported returns ERROR. Note --- not exists total corect conversion to ASCII, this function try convert chars those is _probably_ interpret-able in ASCII for others use ' '. But for example for all Czech characters it is sufficient ... hmm Chinese / JAP and other complicated langs have bad luck here :-( Karel
Diffstat (limited to 'src/backend/utils/adt/ascii.c')
0 files changed, 0 insertions, 0 deletions