Top "Encoding" questions

Encoding is a set of predefined rules to reversibly transform a piece of information in a certain representation into a completely different representation.

How to write file in UTF-8 format?

I have bunch of files that are not in UTF-8 encoding and I'm converting a site to UTF-8 encoding. I'm …

php encoding utf-8 iconv mbstring
Python JSON encoding

I'm trying to encode data to JSON in Python and I been having a quite a bit of trouble. I …

python json encoding types simplejson
Let JSON object accept bytes or let urlopen output strings

With Python 3 I am requesting a json document from a URL. response = urllib.request.urlopen(request) The response object is …

python json python-3.x encoding urlopen
Microsoft Excel mangles Diacritics in .csv files?

I am programmatically exporting data (using PHP 5.2) into a .csv test file. Example data: Numéro 1 (note the accented e). …

excel encoding csv diacritics
XML Carriage return encoding

I was looking to represent a carriage return within an xml node. I have tried a whitespace preserve, hex entity …

xml encoding whitespace
UnicodeEncodeError: 'ascii' codec can't encode character at special name

My python (ver 2.7) script is running well to get some company name from local html files but when it comes …

python unicode encoding beautifulsoup ascii
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 7: ordinal not in range(128)

I have this code: printinfo = title + "\t" + old_vendor_id + "\t" + apple_id + '\n' # Write file f.write (printinfo + …

python xml unicode encoding python-unicode
How to write UTF-8 in a CSV file

I am trying to create a text file in csv format out of a PyQt4 QTableWidget. I want to write …

python csv encoding utf-8
Effective way to find any file's Encoding

Yes is a most frequent question, and this matter is vague for me and since I don't know much about …

c# encoding
How to replace � in a string

I have a string that contains a character � I haven't been able to replace it correctly. String.replace("�", ""); doesn't work, …

java string unicode encoding mojibake