<div dir="ltr"><div><div><div><div>Thanks Ana,<br><br></div>Setting the attributes / encoding to windows-1252 fixed the query results windows problem. But as you mentioned, it did not help with the Attribute table manager.<br><br></div>Also, v.db.select works from the command console in the layer manager but it does not work in the windows command line<br><br></div>Cheers<br></div>Daneil<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 27, 2015 at 12:16 AM, Anna Petrášová <span dir="ltr"><<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 26, 2015 at 1:35 PM, Daniel Victoria <span dir="ltr"><<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi List,<br><br></div>I'm having trouble importing a shapefile with v.in.ogr that has some accented characters (like não, rodoviária).<br></div>The shapefile opend fine in QGIS and I can open the dbf on libreoffice, setting the encoding to (windows-1252/winlatin 1).<br>I imported the shapefile and if I run v.db.select or if I open the attribute data, accented characters are messed up. However, when I try to query the layer, an error message (png attached) will show  telling me to check database settings and then gives me the reason for the failure. I can then see that the queried attributes in this windows all have the accented character.<br><br></div>Has anyone had any luck with accented characters in v.in.ogr? I tried changing the encoding option in v.in.ogr but could not get it to work.<br></div>I'm using grass7 from OSGeo4Win. Attached is the shapefile that I'm trying to import.<br></div></div></div></div></blockquote><div><br></div></div></div><div>Try to specify the encoding in GUI settings -> Attributes -> encoding -> windows-1252.</div><div>But it probably won't help with displaying in Attribute table manager.</div><div><br></div><div>To developers:</div><div>I am totally confused how the attribute encoding is currently implemented. The ATM fails to display the characters correctly since environmental variable GRASS_DB_ENCODING is not set. I can't find any place where it would be set. The list of grass variable says that there is GRASS gisenv variable GRASS_DB_ENCODING. Grep shows usage of GRASS_DB_ENCODING only in gui and it is not set anywhere. Any idea someone?</div><div><br></div><div>Anna</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div></div><br></div>Thanks<span><font color="#888888"><br></font></span></div><span><font color="#888888">Daniel<br></font></span></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div>
</blockquote></div><br></div>