Hi,
I have a PostgreSQL\PostGIS spatial database which contains Hebrew text columns. The system runs on Ubuntu, and everything works flawlessly with UTF-8.
I am trying to dump some tables into shapefile for a Windows program which can only read Windows-1255 strings. Unfortunately, pgsql2shp has no encoding option, although shp2pgsql has, so the Widnows program reads UTF-8 parsed as Windows-1255 giving Gibberish.
I have been trying to create an Windows-1255 view to the table columns, but found no way of doing it without corrupting the database.
Any ideas how to convert the tables?
Thanks,
Adam
UPDATE:
I Thought this one was solved (see my own answer), by I still get random errors like:
ERROR: character 0x9f of encoding "WIN1255" has no equivalent in "UTF8"
What I want is some kind of omit functionality: like iconv
's -c
flag, which simply does not copy source characters which have no equivalent int target encoding.