pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: Raivo Rebane <raivore55@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: shp2pgsql error under windows
Date: Sat, 4 Mar 2023 17:05:36 +0100
Message-ID: <ZANsUHGrAqXSeHB7@elch.exwg.net> (raw)
In-Reply-To: <CAMH5fpuN47xpApTx-brMWdKX=GW3CcBF77qARTOsNKxUdrdRSw@mail.gmail.com>
References: <CAMH5fpuN47xpApTx-brMWdKX=GW3CcBF77qARTOsNKxUdrdRSw@mail.gmail.com>

## Raivo Rebane (raivore55@gmail.com):

> Raivo@DESKTOP-69FUU49 /cygdrive/f/3D-data/Kataster
> 
> $ cat kataster.sql | less
> 
> 
> 
> <FF><FE>S^@E^@T^@ ^@C^@L^@I^@E^@N^@T^@_^@E^@N^@C^@O^@D^@I^@N^@G^@ ^@T^@O^@

That's a BOM and the rest looks like UTF-16 (or UCS-2). You can use
recode (also available in Cygwin) to convert that. You could also use
shp2pgsql in Cygwin and be done with that (Windows is a quite bloated
bootloader for Cygwin, but you do you)).

Regards,
Christoph

-- 
Spare Space





view thread (2+ messages)

Message-ID: <ZANsUHGrAqXSeHB7@elch.exwg.net>
Permalink:  ../ZANsUHGrAqXSeHB7@elch.exwg.net/
Also on:    postgresql.org/message-id/ZANsUHGrAqXSeHB7@elch.exwg.net

 · 

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-general@postgresql.org
  Cc: cmt@burggraben.net, raivore55@gmail.com
  Subject: Re: shp2pgsql error under windows
  In-Reply-To: <ZANsUHGrAqXSeHB7@elch.exwg.net>
  References: <CAMH5fpuN47xpApTx-brMWdKX=GW3CcBF77qARTOsNKxUdrdRSw@mail.gmail.com> <ZANsUHGrAqXSeHB7@elch.exwg.net>

* 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