<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
PostGIS is in UTF-8, the table is in WindowsLatin1. How do I change the
encoding? Is it just a matter of editting the tab file and changing the
string WindowsLatin1 with UTF-8?<br>
Tomas Lanczos schreef:
<blockquote cite="mid:46C42923.10707@t-zones.sk" type="cite">Milo van
der Linden wrote:
  <br>
  <blockquote type="cite">Hello list,
    <br>
    <br>
I am trying to import a MapInfo table into postGIS using ogr2ogr. The
    <br>
import fails with the message: invalid byte sequence for encoding
    <br>
"UTF8": 0xe92057
    <br>
    <br>
It gives me a hint that I sould set something into client_encoding, but
    <br>
is this ogr2ogr related or postGIS?
    <br>
  </blockquote>
  <br>
I had the same problem few days ago (importing shapefiles to GRASS with
postgresql). Change the encoding in the attribute tables to UTF-8
before importing, it helps. It's related to the given encoding of the
PostgreSQL/Postgis database where are You importing Your table.
  <br>
  <br>
Regards
  <br>
  <br>
Tomas
  <br>
  <br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title>3DSite</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
<!--
body {
        background-color: #FFFFFF;
        margin-left: 5px;
        margin-top: 5px;
        margin-right: 5px;
        margin-bottom: 5px;
}
body,td,th {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #333333;
}
.style4 {font-size: 9px; }
.style5 {font-size: 9px; color: #CCCCCC; }
-->
</style>
<meta content="MSHTML 6.00.2900.2912" name="GENERATOR">
<br>
<table border="0" cellpadding="0" cellspacing="0" width="400">
  <tbody>
    <tr>
      <td rowspan="3" align="left" height="0" valign="bottom" width="15"><br>
      </td>
      <td colspan="2" align="left" height="78" valign="top" width="0">
      <p class="style4">Milo van der Linden
      <br>
      <a href="skype:milovanderlinden?add">skype: milovanderlinden</a><br>
      <a href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</a><br>
      <a href="mailto:milovanderlinden@gmail.com">milovanderlinden@gmail.com</a><br>
      <a href="mailto:milo@3dsite.nl">milo@3dsite.nl</a><br>
      <a href="http://www.3dsite.nl">http://www.3dsite.nl</a><br>
      </p>
      </td>
      <td rowspan="3" align="left" height="0" valign="top" width="15"> </td>
      <td valign="top" width="300">
      <p class="style5"><span lang="NL">De informatie in dit bericht
reflecteert mijn persoonlijke mening en niet die van een bedrijf of
instantie. Aan de informatie kunnen geen rechten worden ontleend.
Indien dit bericht onderdeel is van een forum, mailing-list of
community dan gelden automatisch de bij het betreffende medium
behorende voorwaarden.</span>
      <span lang="EN">The information in this message reflects my
personal opinion and not that of a company or public body. All rights
reserved.If this message is contained in a mailing-list or community,
the rights on the medium are automatically adapted.</span></p>
      </td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>