Questions tagged [encoding]

The recording or reformatting of data into a computer format.

Filter by
Sorted by
Tagged with
53
votes
4answers
60k views

Which character encoding is used by the DBF file in shapefiles?

Which character-encoding is used by the dbf-file in shapefiles? It seems it is handled different, based on the program and the local encoding-settings of the machine. Which encoding is 'right' - ...
28
votes
3answers
38k views

How to encode shapefiles from LATIN1 to UTF-8?

Is there a way to encode shapefiles from LATIN1 to UTF-8?
10
votes
5answers
18k views

How to display special German characters “ÄÜÖß” in a map?

I have a shapefile with names for Regions. These don't seem to contain special characters "Ä", "Ü", "Ö", "ß" but ugly hieroglyphs. What can I do to display them correctly. If I import the shape as ...
10
votes
1answer
5k views

Is it possible to change default encoding for QGIS?

I often transfer layers from Windows machine to Linux and vice versa and it causes me problems (incorrectly displayed labels and same with text in attribute table) when I use drag and drop to put ...
9
votes
3answers
22k views

Change Shapefile data source encoding?

I tried to change the only the shapefile datasource encoding through properties and also How to encode shapefiles from LATIN1 to UTF-8? but it doesn't change it. Without saving the QGIS project can'...
8
votes
3answers
3k views

How to control encodings in pgsql2shp?

I have a database and exporting with pgsql2shp various shapefiles. But when I open the dbf the characters are displayed wrong. Example: BroeksterwÔld and this should be Broeksterwäld. This probably ...
8
votes
3answers
10k views

How to read Greek fonts (ISO-8859-7) in shapefile attributes within QGIS 1.8.0?

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.
8
votes
3answers
3k views

SLD encoding in GeoSever on Ubuntu

I am facing a challenge with the encoding in my SLD file in GeoServer on a Ubuntu server. When I create a SLD file containing the danish letters æ, ø, å in the GeoServer web interface like this filter:...
7
votes
0answers
129 views

Open WMTS query parameter encoding with “+” character in QGis [closed]

I am trying to create a WMTS endpoint with query parameters in the urls that contain a + character. So my resource url looks like this: <ResourceURL format="image/png" template="http://localhost/...
6
votes
2answers
517 views

Geocoding through Canadian French language barrier?

This is related to Very Inaccurate Geocodes in Canada (Quebec). It has come to my attention that the streets file I use as my address locator in Canada uses French (or simply accented) characters ...
6
votes
1answer
152 views

Change encoding type for all files or whole project

How can we change encoding mode for the whole project rather than doing to single shapefiles in QGIS 3.4? I wanted to change "UTF-8" to "Shift_JIS" to all project vector files.
6
votes
1answer
1k views

GeoJSON attributes encoding limitation

I have problem when trying to encode attribute values in latin1 using OGR GeoJSON driver. Accent char are not displayed correctly. Is the GeoJSON encoding is limited to UTF-8? I can't find any info ...
6
votes
1answer
578 views

Shp2pgsql encoding issue / error. Special latin /utf characters (áéíóú) are wrong

I am not able to load accented vowels coming from a Shapefile, to a PostGis geodatabase. This is my information: Operative System: Windows 10. PostgreSql Database: postgresql-10.5-2-windows-x64.exe. ...
5
votes
3answers
467 views

QGIS Processing algorithm cannot deal with special characters in input

My aim is to write an algorithm, where the user selects a settlement name, and numeric value, from which a query is generated, and a selection proceeds on the selected layer, than the selection result ...
5
votes
1answer
3k views

Change default data source encoding in QGIS to utf8

Working in languages with special characters, I always struggle with remembering to change the data source encoding from system to utf8 when I import files. Is there a way to have it automatically use ...
5
votes
1answer
240 views

Letters change when saving tab into shp in QGIS

I am working in QGIS 2.18. When I open and then save a .tab file as .shp file I get different symbols in the letters of the attribute table. I don't know what coding option I should use in order to ...
5
votes
4answers
3k views

Converting shapefile from Shift_JIS to UTF-8 when the usual methods fail

Long story short, I'm trying to import this ESRI shapefile of Japan into CartoDB. (Sorry, no direct link: to download, click on the orange ファイルのダウンロード button, check 同意する to agree to the T&C, then ...
5
votes
1answer
477 views

Implementing INSPIRE Metadata with Geodatabase

I would like to begin by saying that I have never implemented INSPIRE metadata with my spatial datasets before. I am undertaking a project which requires my geodatabase metadata to be in the standards ...
5
votes
1answer
2k views

Is it possible to use UTF-8 characters for shapefile attributes?

I heard that according to a specification shapefile attributes stored in dbf-files cannot have UTF-8 as encoding. And then I found out that an additional file with the ending CPG can be used to define ...
5
votes
2answers
2k views

Shapefile encoding problem in QGIS 1.9.0 (built with GDAL 1.9.2)

I have Googled a lot but failed to find the answer. My configuration is: Ubuntu 11.10 Quantum GIS - 1.9.0-Master 'Master' (caae7b7) GDAL 1.9.2, released 2012/10/08 Shapefiles refuse to open in ...
5
votes
1answer
3k views

How to change character set in all columns of many tables in Postgresql / PostGIS?

I have inserted hundreds of tables (from shapefile format) in a Postgresql / Postgis database with the shp2pgsql tool. But because I have encoding issues, I want to change character set in all columns ...
5
votes
2answers
1k views

ogr2ogr: encoding issues when importing from Oracle Spatial to PostGIS

I'm trying to import some spatial tables from Oracle Spatial to PostGIS using ogr2ogr, but I can't figure out why the special characters on the attribute tables get messed up while I'm doing it. My ...
5
votes
3answers
650 views

How can I export data containing umlauts from PostGIS to shapefile, without losing the umlauts?

I am exporting my Finnish (Finland) data from PostGIS to esri shapefile. I am using the PostGIS Shapefile Import/Export Manager and I don't see any way to specify the encoding of the shapefile's ...
5
votes
4answers
326 views

Converting Excel into shapefile (keeping encoding and data type)

I am trying to create a "perfect" shapefile from the Excel data. "Perfect" means that it should match several factors: proper encoding and original data type. Excel file basically contains ...
5
votes
1answer
190 views

Display Emoji Characters in QGIS

I have data with emoji characters in a field that in ArcMap are shown as emojis in the Attribute Table. I've tried all the usual encoding suspects in QGIS but haven't managed to get them display ...
5
votes
1answer
367 views

Change data source encoding of GetFeatureInfo response for a WMS in QGIS

How do I change the data source encoding of the GetFeatureInfo Request of a WMS-Layer in QGIS 2.18.x/3.x? I can't find any setting to handle the encoding. I need UTF-8 encoding for special characters ...
4
votes
1answer
2k views

Setting character encoding for all layers at once using PyQGIS?

I have to set the character encoding for all layers from system to UTF-8. Is there a way to change this in all loaded layers at once? I'm using QGIS 2.8.1 on Windows 7.
4
votes
1answer
1k views

Change shapefile encoding to ASCII in QGIS

I want to convert my shapefile encoding source to ASCII but unfortunately, it is not given in the encoding source type. Maybe it is given with a different name or it is not supported in QGIS? ...
4
votes
1answer
854 views

Geoserver arabic labels and attributes doesn't show in right encoding character set

I set my shapefiles UTF-8 encoding which supposed to display Arabic fine, but it doesn't work in QGIS unless I change the encoding to Windows-1256. QGIS reads the arabic well with this encoding. But ...
4
votes
1answer
3k views

Unicode Decode Error for shapefile in Python

I have Python script for converting shapefiles to Geojson. My code works well if I use some usa data, but when I want to use some other encoding, it gives me this error: Traceback (most recent call ...
4
votes
1answer
114 views

Encoding problem

I used Google Maps to get a text file with the elevation data from an area. Here it is: https://drive.google.com/file/d/0B7P95aWmH4DURTl1ZWx5VUtVQm8/view?usp=sharing Then I used QGIS to get a DEM ...
4
votes
1answer
3k views

What is 'data source encoding' in QGIS?

I'm running QGIS 2.1.4 and Windows 7. For each layer, under properties there is a drop down box called 'data source encoding'. Mine is set to 'system'. I am wondering what this means, there seems to ...
4
votes
1answer
427 views

Time series export from ArcGIS Desktop to KML not working in Google Earth?

I am having trouble with the KML export. My time series will not work properly in google earth, it has time start in 0001 when it should start in the year 2001. My incidents time is coded ...
4
votes
0answers
48 views

How to change QGIS 3 default encoding

When I import shapefile layers their encoding is System while the data is in UTF-8. How to change the default encoding to UTF-8? This question answer here " Is it possible to change default ...
4
votes
0answers
268 views

Problem with encoding when clipping raster

I am using QGIS 2.18 on a Linux Mint computer using UTF8. I downloaded solar radiation raster data from PVGIS. The files are encoded as us-ascii (according to the linux command tool file -bi). Opening ...
3
votes
2answers
860 views

Incorrect display of national characters from Spatialite in QGIS, Windows

I used this tutorial by underdark (thanks much :-) ) to convert my area of interest from OSM file (whole Czech Republic downloaded from Geofabrik.de server). Used OSGEO4W shell (saying "GDAL 1.11.0, ...
3
votes
2answers
9k views

How to change encoding of layer? [closed]

After loading a point layer out of a text file (plug in add delimited text layer) saved in ISO 8859-15 (Latin 9) out of Access, I did save the layer under Qgis 1.8 with the ISO 8859-15 encoding. When ...
3
votes
2answers
1k views

QGIS tools change special characters to unreadables

QGIS tools change special characters (õ, à) of attributes into unreadable characters. Example: # load 1 wfs feature uri = "http://geo.vliz.be/geoserver/MarineRegions/ows?service=WFS&version=1.0....
3
votes
1answer
188 views

Show raw bytes that make up an attribute in a shapefile

I am processing shapefiles, and I'm trying to track down an encoding problem. I want to check the raw bytes of an attribute to see if this shapefile (and hence the step that created it) is the source ...
3
votes
2answers
2k views

Shapefiles *.dbf data, encoding problem

I have to work with the Shapefiles, and all is fine except data in *.dbf When I have first deserialized file, I have thought, that I'm doing smth wrong, but when any soft like (QGIS, SAGA, ESRI ...
3
votes
1answer
3k views

How did QGIS fix a shapefile's character encoding, and can I do this on the command line with ogr2ogr?

Solved: I'm not sure why, but it works fine if I specify --config SHAPE_ENCODING "ISO-8859-1" in my ogr2ogr command. For whatever reason, this allowed ogr2ogr to go from the original TigerLine ...
3
votes
3answers
5k views

Getting Unicode/Codepage problem - Convert UTF-8 to ANSI with File Geodatabase

I have a Codepage issue, and for now I am a bit stumpped My original source data contains multiple country data delivered in SHP (UTF-8). The data is then merged into a File GeoDB as the data is too ...
3
votes
1answer
60 views

Encoding issue in QGIS while exporting a layer with Cyrillic characters from gpkg to CSV

I need to export gpkg layer contained Cyrillic characters to a spreadsheet, e.g. csv file. I do that using Export -> Save Features As and pick UTF-8 encoding. I tried encodings: Cyrillic, different ...
3
votes
2answers
1k views

Error when clipping raster in QGIS: “'ascii' codec can't encode character”?

I have done it many times (clipping a raster with a polygon layer or by extension) but today I got an error for the first time and I don't know how to solve it. I am always using the same type of ...
3
votes
1answer
2k views

Change data source encoding in QGIS 3.0.x?

Changing Data source encoding through layer Properties worked well for me until version 3.0.x - now, the field is grayed out and shows only UTF-8. Our Data sources are quite mixed and I get spades, ...
3
votes
1answer
206 views

Problem with shapefile created using Arcgis 10.3

I have create a shapefile using Arcgis 10.3 . the shapefile contains attribute data in Arabic language . the problem came when I open it in Mapwell (an app specializes in creating navigable maps) ...
3
votes
1answer
6k views

QGIS 2.14 Plugin Encoding Error

I've developed a plugin for QGIS 2.12 which uses data that is encoded in UTF-8. The plugin works fine for 2.12, but when I try to start it in QGIS 2.14 it throws me the following error: ...
3
votes
1answer
205 views

Does CartoDB support alphabets other than Latin?

Does anyone know if CartoDB supports alphabets other than Latin? I'm trying to upload some data with Cyrillic characters but have had no success.
3
votes
1answer
865 views

How to couple GeoTools GML bindings for encoding to GML 3.1.1

I've successfully created GeoTools (8.3) bindings for parsing and encoding XML bindings as described in their tutorial: http://docs.geotools.org/latest/userguide/library/xml/internal/bindings.html I ...
3
votes
0answers
26 views

Fixing DXF import encoding problem using PyQGIS3

I have text with French accent in a DXF I import in QGIS3.16. The DXF is encoded in UTF-8 but as a result, the features attributes have encoding problems. The é charcacter are written é. Here's a ...