I'd like to ask whether there is a way to read greek fonts in a shapefile's attribute table within QGIS 1.8.0.
You might try creating a file with the same base name as the shapefile but with a
See http://support.esri.com/en/knowledgebase/techarticles/detail/21106 for more info on
Update 1: Just to illustrate that QGIS does respond to the presence of
Both shapefiles have
I do not have a shapefile containing Greek characters to test, but you might try declaring
Update 2: I downloaded a sample shapefile from the page Andre suggested (thanks!). As you can see, by default the fields containing Greek text do appeared garbled:
I then created a file named
That looks Greek to me!
ZISIS, is this sample shapefile representative of the files you need to work with?
Update 3: The examples above were based on QGIS 1.8.0 on Mac OS X 10.8.2. I have also tested this method with QGIS 1.7.5 on Linux Mint 14:
SOLUTION A for utf-8 encoded shapefiles
Supposed you are working on Windows, look for qgis.bat in bin directory, and open it with a text editor. after the first line, insert
and save. Qgis 1.8.0 has some problems with encoding, using your computers default font instead of the one you specify. It is fixed in Qgis Master (1.9.0) by now, which you can install with osgeo4w setup.
SOLUTION B for ISO-8859-7 encoded shapefiles
We had a similar issue lately on the mailing list:
It works on the cited shapefile only with Qgis Master (1.9.0):
In Settings -> Options -> General, there is a checkbox
Then open the shapefile in QGIS with ISO-8859-7.
With this option shapefile encoding is done the same way as in Qgis 1.7.4, that is leaving it to QGIS and not GDAL.
If you want to work on with QGIS Lisboa, save the shapefile as
create a file named
convert the shapefile with ogr2ogr:
This allows GDAL to encode ISO-8859-7 on reading, and writes UTF-8. Unfortunately, writing to shp in one step does not work the same way. You can use the GML or the utf.shapefile with Solution A.
This should be possible if you open the layer preferences, to to General and set the encoding to UTF-8.
Edit: Use OpenOffice to open the dbf, set the encoding to UTF-8 and then hit save. You may need to add and delete a letter to get the save-option.