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.

C# Encoding a text string with line breaks

in C# I have a string I am writing to the outputstream of the response. After I save this document …

c# encoding response
Why should we NOT use sys.setdefaultencoding("utf-8") in a py script?

I have seen few py scripts which use this at the top of the script. In what cases one should …

python encoding utf-8 python-2.x sys
"unmappable character for encoding" warning in Java

I'm currently working on a Java project that is emitting the following warning when I compile: /src/com/myco/apps/…

java encoding utf-8 ascii
Why does the PHP json_encode function convert UTF-8 strings to hexadecimal entities?

I have a PHP script that deals with a wide variety of languages. Unfortunately, whenever I try to use json_…

php encoding json
Determine a string's encoding in C#

Is there any way to determine a string's encoding in C#? Say, I have a filename string, but I don't …

c# string encoding
What is the difference between utf8mb4 and utf8 charsets in MySQL?

What is the difference between utf8mb4 and utf8 charsets in MySQL? I already know about ASCII, UTF-8, UTF-16 and …

mysql encoding utf-8 character-encoding utf8mb4
SyntaxError of Non-ASCII character

I am trying to parse xml which contains the some non ASCII cheracter, the code looks like below from lxml …

python encoding xml-parsing lxml non-ascii-characters
Set Encoding of File to UTF8 With BOM in Sublime Text 3

When I open a file in Sublime Text 3, at the bottom I have an option to set the Character Encoding …

encoding utf-8 sublimetext3 sublimetext2 byte-order-mark
How do I correct the character encoding of a file?

I have an ANSI encoded text file that should not have been encoded as ANSI as there were accented characters …

encoding utf-8 character-encoding text-files codepages
Best way to encode text data for XML in Java?

Very similar to this question, except for Java. What is the recommended way of encoding strings for an XML output …

java xml encoding