Top "Python-unicode" questions

Python distinguishes between byte strings and unicode strings.

TypeError: ufunc 'subtract' did not contain a loop with signature matching types dtype('<U1') dtype('<U1') dtype('<U1')

Strange error from numpy via matplotlib when trying to get a histogram of a tiny toy dataset. I'm just not …

numpy matplotlib python-unicode
Removing unicode \u2026 like characters in a string in python2.7

I have a string in python2.7 like this, This is some \u03c0 text that has to be cleaned\u2026! …

python python-2.7 non-ascii-characters python-unicode unicode-escapes
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 3131: invalid start byte

I am trying to read twitter data from json file using python 2.7.12. Code I used is such: import json import …

json python-2.7 utf-8 ascii python-unicode
Python to show special characters

I know there are tons of threads regarding this issue but I have not managed to find one which solves …

python encoding special-characters python-unicode
Unicode Encode Error when writing pandas df to csv

I cleaned 400 excel files and read them into python using pandas and appended all the raw data into one big …

python pandas export-to-csv python-unicode
Python 3: os.walk() file paths UnicodeEncodeError: 'utf-8' codec can't encode: surrogates not allowed

This code: for root, dirs, files in os.walk('.'): print(root) Gives me this error: UnicodeEncodeError: 'utf-8' …

python python-3.x unicode unicode-string python-unicode
How to write Russian characters in file?

In console when I'm trying output Russian characters It gives me ??????????????? Who know why? I tried write to file - …

python windows unicode python-2.x python-unicode
Python: Traceback codecs.charmap_decode(input,self.errors,decoding_table)[0]

Following is sample code, aim is just to merges text files from give folder and it's sub folder. i am …

python file-io python-3.x traceback python-unicode
python3 UnicodeEncodeError: 'charmap' codec can't encode characters in position 95-98: character maps to <undefined>

A month ago I encountered this Github: https://github.com/taraslayshchuk/es2csv I installed this package via pip3 in …

python-3.x elasticsearch-plugin python-unicode