Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [unicode]

Unicode is intended to be a universal character set for describing all the characters required for written text incorporating all writing systems, technical symbols and punctuation.

2
votes
1answer
73 views

QGIS general character encoding

This isn't a particularly major issue, but I've had this thing nagging me for a while. When looking at QGIS 3.4's global variables, user_full_name is assigned my given and surname, which includes a ...
2
votes
1answer
125 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 ...
0
votes
1answer
1k views

Showing FontAwesome Icons on Openlayers

I can't show these icons from FontAwesome: var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.OSM() }) ] , target:...
0
votes
0answers
37 views

Trying to use “Pit Remove” tool gives out “'ascii' codec can't encode character" error

It does not only happen with pit remove, but with other tools as well. I get this error in all of them. 'ascii' codec can't encode character u'\xb0' in position 158: ordinal not in range(128) See log ...
0
votes
0answers
443 views

AttributeError: 'unicode' object has no attribute 'replaceWorkspacePath' [duplicate]

I must of written this code using 15 different structures with no luck. I am simply trying to take an old layer 'Windfarms' stored in 'C:\Users\darle\Desktop\MXD_Test\Test.gdb' and replace it with '...
2
votes
0answers
290 views

How to get a shapefile DBF encoding?

I wrote a python code that is used in different countries. It process a shapefile DBF, that can be encoded in any of the local langage (or being provided by another foreign partner), or even in ascii. ...
1
vote
1answer
44 views

How to workaround non 'ascii' encode character in layer ID of WSM layers in QGIS?

I am working with the plugin RiverGIS, which in one steps reads the layer ID of all raster layers. In my case it fails becuase there is an "ä" somewhere. Traceback (most recent call last): File "C:/...
2
votes
2answers
363 views

Store in dictionary/list strings with special characters from Attribute Table

I need to store into a dictionary data from a shapefile that contains in several fields unrecognizable characters by ASCII, like in this one: "Städtebaulicher Entwicklungsbereich: Sanierungsgebiete SG ...
1
vote
2answers
780 views

Export to PDF with Nepali (Preeti, Kalimati) fonts in ArcGIS 10.2.2

I am using ArcGIS 10.2.2, created a map with Nepali (Preeti, Kalimati) fonts. Fonts not correctly displayed in exported PDF file. Any solution?
1
vote
1answer
68 views

Getting difference between field and constant value in ArcPy?

I need to calculate the difference between two input parameters within a table. the first parameter is a field in the table, and the second is a constant i want to subtract from this field, both of ...
0
votes
1answer
173 views

UnicodeDecodeError in for loop

I am getting a unicode error while using a combination of an UpdateCursor and csv reader. I'm trying to fix field values that got messed up because ArcGIS didn't read the CSV properly when it imported ...
3
votes
1answer
361 views

UnicodeEncodeError for searchCursor

import arcpy import csv import glob, os os.chdir("C:\\path\\folder") fieldsource = "C:\\path\\sampleshp.shp" fields = [r.name for r in arcpy.ListFields(fieldsource)] csv_out = "C:\\path\\table.csv" ...
5
votes
1answer
749 views

PyQGIS script processing: 'unicode' object has no attribute 'getFeatures'

I'm beginner. I try to use a code that works to create a script processing. The code creates folder and subfolder using the value os a column. This is then processing script import os ##Crea folder ...
1
vote
0answers
89 views

Tilestache VecTile Encoding Error

I'm trying to fix what I believe to be an encoding issue with Tilestache and was curious if someone else has seen this issue. Here's an example of the string that gets passed: �9*y��c�ަ��uSA��ٍ�c��'�...
2
votes
1answer
207 views

UnicodeEncodeError in QGIS when setting a path

When I'm trying to batch reproject a bunch of files using GDAL warp (reproject) from processing module in QGIS (2.14) I'm getting UnicodeEncodeError: UnicodeEncodeError: 'ascii' codec can't encode ...
1
vote
1answer
299 views

Error when using viewshed analyis plugin with merged shapefile

I am using Qgis 2.12Lyon and try to run a viewshed analysis to show the intervisibility between several points in more than one shapefile. I have a digital elevation model (.tif) which is projected ...
1
vote
0answers
1k views

My QGIS keeps me returning “ascii” errors

First, whenever I open QGIS, the extension "Quickmap Services" returns an error with this tracker: Impossible to load the extension quick_map_services because of an error on calling InitGui() method ...
0
votes
1answer
89 views

Remove layers using python- path orientation

Expanding on my previous question Code error - remove layer using python, i try to remove layers from mxd's (in ArcMap 10.3, python 2.7.8), that don't appear in the data frame with this code: import ...
0
votes
1answer
1k views

ArcPy and File Geodatabase Character Encoding

I have a JSON file containing special characters, which can be represented in Unicode. However, as soon as I export that JSON file to a file geodatabase using arcpy, the special characters all "break,"...
1
vote
1answer
579 views

QGis cannot retrieve a text value from QLineEdit [closed]

I am a developing a small plugin with python for QGis. I have a QLineEdit widget and I need to take the input from there. The input is a 8 character number string. However when I try to retrieve the ...
2
votes
1answer
261 views

Using layer name with accent on letter in ArcPy?

I have a lot of MXDs (more than 200) and all of them use a polygon shapefile "study_area_v00.shp". In the data frame, its name is just "Study Area". Every time we change the boundary of the polygon, ...
2
votes
0answers
113 views

Can unicode characters be generated from unicode literals in QGIS expressions?

I know that unicode characters can be copied and pasted into expressions in QGIS, but can they be generated from a unicode literal ie u'\u00C9' without using a custom Python function?
0
votes
1answer
837 views

Understanding UnicodeDecodeError: 'utf8' codec in ArcPy script?

I work with arcmap 10.3 and python 2.7.8. I have more than 500 shapefiles that located in many folders and subFolders. All Sub Folders are located in one large directory. I try with arcpy to detect ...
1
vote
1answer
236 views

Using “calculate field” in python script fails to display Arabic characters correctly

Using “calculate field” in python script fails to display Arabic characters correctly. I have exported the modelbuilder to python script, but unfortunately the Arabic characters cannot by displayed ...
1
vote
1answer
185 views

Converting integer value to unicode for labeling in QGIS

It is possible to stylize a layer with integer numbers stored in a shapefile and then choose a symbol out of a font. I would like to use the label engine instead, because i'm more flexible, for ...
2
votes
0answers
180 views

How to change font used by ArcGIS Pro controls and dialogues to Khmer?

In Cambodia, we need to use Khmer font to show our own language characters. ArcGIS Pro which has Ribbon interface support the display of the Khmer font but we need to change the font to use Khmer font....
1
vote
1answer
70 views

Labelling problem for Shapefile with Indic Fonts

On my computer (Ubuntu 14.10, 64 bit), I am using QGIS 2.6. I have a shapefile, where the names of the features are written in Indic Script (using Google Transliterate). When I wish to label them, ...
2
votes
1answer
989 views

ogr2ogr + MapInfo TAB + SQLite (SpatiaLite) = unicode problems

I'm adding MapInfo TAB files to SQLite (SpatiaLite) database using those arguments: ogr2ogr -f "SQLite" dataset.sqlite somelayer.tab -dsco spatialite=yes Source file somelayer.tab have ...
2
votes
0answers
265 views

A list of layer names that you want to be turned off when Layers name are in Right to Left Such as persian

When I ran this code I got "UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal" error I don't know why I tried many way but I ...
1
vote
1answer
259 views

Multivalue input from chosen field giving patchy input strings from ArcPy?

I made a small tool that can be run from a toolbox. It has a validation code to choose multiple values from a specified field from a specified feature layer. It looks quite ordinary: The validation ...
2
votes
1answer
1k views

ArcGIS 10.0, Field Calculator Nested “if” statement with strings

I need to assign a value depending on other two columns "FNP" and "Teilort". I wrote this script in phyton for field calculator. It actually works (no error messages) but the results in every cell is ...
2
votes
1answer
1k views

How to get the mapserver WFS OGR driver to encode unicode in geojson

Running mapserver 6.4.1, gdal 1.14.3 I try to output some WFS features using outputformat=geojson. The relevant bits of the mapfile are appended below. Everything works fine, but unicode characters ...
1
vote
0answers
116 views

Does Unicode Common Locale Data Repository (CLDR) library have rules for longitude/latitude coordinates?

Does the Unicode Common Locale Data Repository (CLDR) library contain rules for formating longitude/latitude coordinates? I am looking for information how coordinates should be formatted in each ...
3
votes
1answer
1k 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 ...
6
votes
1answer
2k views

ASCII encoding error when updating field content in SQL Server table

I know there are plenty of posts and blog explanations about unicode errors, but I still can't figure out to handle it in my particular case. So here is my problem: I am writing a Python script to ...
1
vote
0answers
193 views

Converting MDB File With Unicode Characters

I'm using C# wrapper of GDAL and I'm having a problem converting MDB file that contains unicode characters. Lets take for example conversion to KML file, non-English characters are replaced by '?' ...
2
votes
1answer
1k views

AttributeError with unicode object with data frame in python script

I'm running a python script from arccatalog and it works, however, I am trying to add layers to an mxd and need to declare the data frame. I keep getting this error message. type 'exceptions....
2
votes
1answer
889 views

Are unicode symbols supported in QGIS labels?

I want to use unicode symbols in a QGIS label - is this supported? I.e. I have this expression for labelling a line: case when xat(-1) - xat(0) > 0 then 'GF ->' else '<- GF' end and ...
2
votes
0answers
67 views

Unicode Characters in GRASS ps.map instructions file

I am trying to put text on a ps.map generated map and the text contains the degrees symbol. I can insert the symbol into the instructions file, and it looks fine, but when I generate the map, the ...
4
votes
2answers
1k views

Does QGIS support internationalization?

Does QGIS support multiple languages? I have some shapefile with Arabic names in its attributes, and they appear as: ???? If I want to see the names in Arabic, do I need to purchase multi-language ...
3
votes
1answer
3k views

How can I avoid UnicodeEncodeError when using geoprocessing tools in QGIS?

I have a shapefile, that I want to split with the "Split Layers by Field"-tool. Due to some umlauts (ä,ü,ö) there will be a python error as soon, as the tool reaches a feature with an umlaut. The ...
3
votes
1answer
12k views

Find and replace unicode character in a shapefile

I've found several example of script and blog posts on working with unicode characters, but I haven't been able to make anything works so far... It's a little frustrating I have a shapefile encoded ...
2
votes
1answer
239 views

How to generate Report with Unicode Character for Gujarati text?

I am using ArcMap 10.1 and want to generate report using Report Designer. In Report header i use Label Control for display unicode character (Gujarati) but when i copied gujarati text from word doc ...