Questions tagged [encoding]
The recording or reformatting of data into a computer format.
152
questions
1
vote
1
answer
59
views
Encoding issue while making GeoDataFrame from shapefile using URL
The dataset I want to use have some special characters like ü, õ, ö, ä. which cause encoding issue.
The below example runs totally fine and doesnt mess up those characters.
gdf_local = gpd.read_file(r'...
4
votes
1
answer
242
views
Converting shapefile with Windows-1252 encoding to UTF-8 for QField
When packaging a QGIS project for QField using QFieldSync plugin, I get the following error:
Layer does not use UTF-8, but "windows-1252" encoding.Working with layers that do not use UTF-8 ...
0
votes
1
answer
55
views
UTF-8 character encoding problem on Windows with PyQGIS (processing.run)
Coding problem(UTF-8), in addition how to display a new temporary layer?
fnout ='C:\\Users\\a\\Desktop\\tabele_pkt.shp'
processing.run("native:createpointslayerfromtable",\
{'INPUT':'C:\\...
1
vote
0
answers
99
views
Keep the encoding to UTF-8 in QGIS 3.22 when using tools in the Qgis toolbox?
Is there any equivalent to this setting/data source/option in QGIS 3.22. I would like to have the default encoding of UTF-8 (right now it change the files into windows1250 when running tools in the ...
1
vote
0
answers
30
views
Ignore shapefile encoding on newest QGIS version
Where can I find the Ignore shapefile encoding checkbox on latest QGIS versions? It used to be on settings > data sources, but it isn't there anymore. It is a very handy option for non-English ...
0
votes
0
answers
47
views
Specify file encoding when using QGIS Split vector layer
I've successfully split a shapefile into multiple shapefiles using the "Split vector layer" tool (Vector > Data Management Tools) in QGIS 3.16.15-Hannover. However, The split shapefiles ...
0
votes
0
answers
51
views
QGIS GRASS decoding error
As many others, as I found out, I to have a problem with GRASS possibly due to location (Czech Republic, Middle Europe).
This is what I get:
QGIS version: 3.20.3-Odense
QGIS code revision: 495fbaec
Qt ...
0
votes
1
answer
31
views
GeoServer CSS encoding
When using SLD as style format the head has an ecoding tag. Having title text in "foreign" charters in GetLegendGraphic is rendered as expected.
But when using CSS format /* @title red line ...
0
votes
0
answers
36
views
Wrong representation rof column name in UTF-8 encoded shape in MapInfo
I want to open an UTF-8 encoded shapefile with MapInfo (15.02). When the pop-up asks me what encoding is used, I chose UTF-8. The data contained in the table is then perfectly shown. The special ...
1
vote
0
answers
101
views
Encoding problem with a geopackage
I received a geopackage file and one of the attribute contains encoding mistakes for the Swedish letters ö, ä, å. How can I fix this with QGIS or FME ?
3
votes
2
answers
262
views
QGIS 3 doesn't propertly read umlaut from shapefile encoded in UTF-8
I'm using shapefiles with encoding UTF-8 that were used in ArcGIS before. The German umlaut ( ¨ ) are shown as a question mark. In Layer Properties -> Source -> Settings the encoding is set to ...
2
votes
2
answers
145
views
Loading multiple CSV files in QGIS and declaring encoding
By the following code from the other post, I was able to load multiple CSV files into QGIS.
import glob, os
# Define path to directory of your csv files
path_to_csv = "C:/Users/You/Desktop/csv ...
0
votes
1
answer
37
views
Installing QGIS with osgeo4w-setup.exe gives unreadable Cyrillic text
When I try to install QGIS with osgeo4w-setup.exe, the Cyrillic text on one of the windows is unreadable.
I would like a screenshot of this text in English.
0
votes
1
answer
35
views
Why is “Clip vector by extent” converting my vector to ISO-8859 encoding?
I’m using the extents of one vector to clip another, using GDAL Vector processing “Clip vector by extent” function. Both vectors are encoded as UTF-8. So why the resulting vector is encoded as ISO-...
3
votes
0
answers
86
views
Setting QGIS WMS character encoding
I am using the QGIS as a WMS client. I'm loading the WMS layer but the legend characters (which are in Persian language) are not displayed correctly in the Layer tab. Is there anyway I can handle the ...
3
votes
1
answer
530
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 ...
6
votes
0
answers
510
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 ...
3
votes
1
answer
76
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 ...
2
votes
1
answer
633
views
Encoding problem with Polish letters in GeoPandas
I have the problem with encoding because I need Polish letters and encoding="utf-8" didn't work.
import geopandas
df = geopandas.read_file(r'/home/gis/adresypolska/PRG_PunktyAdresowe_POLSKA....
0
votes
0
answers
34
views
Join between census shapefile and census CSV yields attribute table columns populated in disorderly fashion
I am using QGIS 3.10 to display American Community Survey variables at the census tract level. Last week, I successfully joined three ACS tables to duplicated copies of census tract geometries (same ...
0
votes
0
answers
49
views
What format is this list of times, lats and lons?
I have a bunch of strings from an XML file of a sailboat race (the Volvo Ocean Race 2011-2012). The XML file was consumed by an old flash app which I no longer have access to. I am 90% sure the ...
0
votes
1
answer
182
views
Control source file encoding (properly read windows 1255 encoded shapefiles) in ArcGIS Pro
My source data shapefile contains multiple attribute fields in Hebrew.
I dragged it into a new empty map in ArcGIS Pro and created a layer. The geometry and English fields of the attributes table are ...
1
vote
0
answers
268
views
Where is "Ignore shapefile encoding declaration" placed in QGIS 3.10.7?
When I tried to change data source encoding of a DXF file in QGIS, the field is grayed out and stuck to UTF-8.
Then I found this solution. But there's no Ignore shapefile encoding declaration checkbox ...
0
votes
0
answers
73
views
Can't save any polygon layer: getting strange error message
After using QGIS 3.12 for some time, I ran across a problem where I could not save any polygon that had a text field. Even if I create a new project with nothing in it, make a polygon, and add a text ...
0
votes
1
answer
460
views
Encoding issue in QGIS while loading CSV file
I am trying to create a value map on a field by loading a CSV file that was Exported from Google Sheets, but QGIS is loading unrecognized characters.
However, the Arabic characters do show up fine ...
1
vote
1
answer
344
views
GeoServer layer preview doesn't work for chinese columns or columns that has underscore in name
I am learning to use GeoServer. I published a layer from a shp, which I created by importing a csv file into QGIS in utf-8 encoding, and exporting as shp in utf-8 encoding. I added a style to the ...
3
votes
0
answers
3k
views
Encoding categorical variable for random forest with sklearn
I have a random forest model that works pretty well, taking a bunch of vanilla remote sensing raster data as input. I think it could be improved with addition of some information that I currently have ...
6
votes
1
answer
224
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.
1
vote
1
answer
2k
views
Encoding problem with Portuguese characters while opening shapefile
I use a shapefile with names in Portuguese that contain special characters. When I add it to QGIS it exchanges special characters for symbols, so I have problems when comparing values with other ...
1
vote
0
answers
277
views
Encoding GeoJSON to something other than 'UTF-8' from QGIS
I want to save the shp file as GeoJSON and encode it to system,
but my QGIS is disabled for selecting an encoder.
Adjusted the 'ignore shapefile incoding declaration' option, but it did not work.
I ...
0
votes
1
answer
646
views
How can I insert degree symbol to attribute table in feature class?
I am trying to insert a bearing string into an attribute table,
I want the string to look like this -> S 58°15'31" W ,
but what I am getting in the table is this -> S 58°15'31" W
The code I am ...
1
vote
2
answers
344
views
How to change PostgreSQL layer encoding for QGIS Server
I'm actually stuck trying to update encoding of my PostgreSQL layers to be able to set my project as QGIS server project.
In the layers properties, I can't change the layer's encoding.
Any hints on ...
0
votes
0
answers
295
views
Problems with GeoServer REST API via Python and text encoding
I have checked a few other threads talking about GeoServer REST API and encoding, but nothing seemed to work.
I have a dataset already uploaded into GeoServer and now I just want to update some of ...
0
votes
1
answer
247
views
Using Google Encoded Polyline Algorithm Format with Oracle Database
Google's Encoded Polyline Algorithm Format is implemented in several GI tools. PostGIS e.g. has ST_AsEncodedPolyline and ST_LineFromEncodedPolyline functions.
In contrast, Oracle Database has no ...
0
votes
1
answer
144
views
st_read option does not work if parameter is separated from equal (=) sign
This is a small pet peeve. I'm reading a latin1 encoded shapefile in R using st_read and the encoding option.
I just found out that if I write encoding=latin1 everything works as expected but, if I ...
3
votes
3
answers
2k
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 ...
1
vote
1
answer
334
views
QGIS 3.4.3 Refactor fields changes symbols in fields (cp1250)
I've been using QGIS Refactor fields to change type, re-order and rename a substantial ammount of columns (statistical data). Most of them hold purely numerical values and are as such not material to ...
0
votes
1
answer
1k
views
How to change the encoding once a spatialpolygon is loaded in R and how to speed up loading a geodatabase .gdb file?
Question
How to change the encoding setting for a spatialpolygon loaded in R without reloading it? Similar to the argument encoding=UTF-8 when loading the file with readOGR or similar to the drop-...
6
votes
2
answers
1k
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.
...
0
votes
1
answer
190
views
Encoding in Python toolbox?
My Python toolbox uses a function (code below) to save values to a CSV file. When I was using the same code in a Jupyter notebook, saved records were properly encoded (I am dealing with Polish letters ...
5
votes
4
answers
421
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 ...
1
vote
0
answers
424
views
Encoding issues in Arcpy, appears unicode?
I have a column that has Greek characters:
Example:
Like "*\u0395\u03a*")
What can I do to make it appear as it should?
What I have tried:
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
...
3
votes
1
answer
679
views
how to change encoding of a geopackage in QGIS 3
For other formats you just go to Label >> Properties >> Source and there's a clickable button to select from a list of locales; but this box is grayed out for GPKG, is there a way to change the ...
3
votes
1
answer
603
views
QGIS Server labels encoding
I have a PostgreSQL database with "UTF-8" encoding which contains data in Russian language.
Each table of database loaded in QGIS as a PostGIS layer.
I want to show labels of objects on a ...
5
votes
1
answer
479
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 ...
2
votes
1
answer
4k
views
Export Shapefile with UTF-8 encoding for non-english characters in GeoPandas? [closed]
This part of code puts the EΞ characters in a column and when exported it shows ?? in their place.
dff['KAEK']=dff['CAD'].str[:5].add('ΕΞ').add(dff['CAD_AD_F'].str[5:]).add(dff['rank'])
dff.to_file(...
-1
votes
1
answer
199
views
Several letters missing in QGIS 3.0.3 [closed]
My QGIS cannot display several letters, like for example Ž, Đ, š.....
Other programs on my PC do recognize these letters/fonts.
What can I do?
3
votes
1
answer
416
views
Unicode problems while writing selected features to a new shapefile with Fiona
I have a shapefile with a large number of geographic features (marine protected areas). I'm trying to read through all of the areas in the shapefile, select those that fit a certain criterion, and ...
1
vote
1
answer
136
views
Handling of accented characters in GMAPSUPP.IMG
I'd like to use my Garmin 20 to go biking. Since I do not want to buy one of microSD card from garmin, I'd like to build one myself.
For this I went to:
http://garmin.openstreetmap.nl/
Selected:
"...
5
votes
0
answers
321
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 ...