<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Times New Roman'; COLOR: #00002b; FONT-SIZE: 12pt">
<DIV>Hi</DIV>
<DIV> </DIV>
<DIV>I am attempting to import a dxf file to Postgis using ogr2ogr version 1.8 
running on Win 7.</DIV>
<DIV> </DIV>
<DIV>I get errors “invalid byte sequence for encoding "UTF8": 0xfe” using the 
following command in command prompt. Points and text are not being 
imported.</DIV>
<DIV> </DIV>
<DIV>set DXF_INLINE_BLOCKS=false&set 
DXF_MERGE_BLOCK_GEOMETRIES=false&&ogr2ogr --config DXF_ENCODING UTF-8 -f 
"PostgreSQL" PG:"host=localhost user=postgres dbname=IDW password=calgary0623" 
Water_Ex.dxf -nln Import_PID  -overwrite -skipfailures </DIV>
<DIV> </DIV>
<DIV>During research of this problem I came upon a suggestion to check with the 
Postgre list.</DIV>
<DIV> </DIV>
<DIV>Can anyone suggest a solution?</DIV>
<DIV> </DIV>
<DIV>Following are a few of the error messages.</DIV>
<DIV> </DIV>
<DIV>Bob</DIV>
<DIV> </DIV>
<DIV>LIST', '{1,1,1}', 0) RETURNING ogc_fid</DIV>
<DIV>ERROR 1: INSERT command for new feature failed.</DIV>
<DIV>ERROR:  invalid byte sequence for encoding "UTF8": 0xfe</DIV>
<DIV> </DIV>
<DIV>Command: INSERT INTO "import_pid" ("wkb_geometry" , "layer", "subclasses", 
"exte</DIV>
<DIV>ndedentity", "entityhandle", "blockname", "blockscale", "blockangle") 
VALUES (Ge</DIV>
<DIV>omFromEWKT('SRID=-1;POINT (0.003291735334244 -0.065895915915561)'::TEXT) , 
'MC-A</DIV>
<DIV>TT', 'AcDbEntity:AcDbBlockReference', '     4 tag_rev1 
t      1 KEYTAG■C,10,0 RE</DIV>
<DIV>V_ID■C,10,0 REVISION■C,3,0 REVISED_BY■C,10,0 REVISED_ON■C,14,0 
REV_TITLE■C,32,0</DIV>
<DIV>REV_BY_APP■C,16,0 APPROVEDBY■C,10,0 PENDING■C,1,0 PEND_MAIL■C,10,0', 
'327A', '_A</DIV>
<DIV>T_DIRLIST', '{1,1,1}', 0) RETURNING ogc_fid</DIV>
<DIV>ERROR 1: INSERT command for new feature failed.</DIV>
<DIV>ERROR:  invalid byte sequence for encoding "UTF8": 0xfe</DIV>
<DIV> </DIV>
<DIV>Command: INSERT INTO "import_pid" ("wkb_geometry" , "layer", "subclasses", 
"exte</DIV>
<DIV>ndedentity", "entityhandle", "blockname", "blockscale", "blockangle") 
VALUES (Ge</DIV>
<DIV>omFromEWKT('SRID=-1;POINT (0.003291735334244 -0.065895915915561)'::TEXT) , 
'MC-A</DIV>
<DIV>TT', 'AcDbEntity:AcDbBlockReference', '     4 tag_rev2 
t      1 REV_ID■C,10,0 RE</DIV>
<DIV>V_DETAIL■C,50,0 REV_INT■N,3,0', '327B', '_AT_DIRLIST', '{1,1,1}', 0) 
RETURNING o</DIV>
<DIV>gc_fid</DIV>
<DIV>ERROR 1: INSERT command for new feature failed.</DIV>
<DIV>ERROR:  invalid byte sequence for encoding "UTF8": 0xfe</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV></BODY></HTML>