Top "Escaping" questions

Escaping is the process of applying an alternate meaning to a character or set of characters.

Properly escape a double quote in CSV

I have a line like this in my CSV: "Samsung U600 24"","10000003409","1","10000003427" Quote next to 24 is used to express inches, while …

csv escaping
How to decode Unicode escape sequences like "\u00ed" to proper UTF-8 encoded characters?

Is there a function in PHP that can decode Unicode escape sequences like "\u00ed" to "í" and all other similar …

php unicode utf-8 escaping decoding
Escape single quote character for use in an SQLite query

I wrote the database schema (only one table so far), and the INSERT statements for that table in one file. …

sqlite escaping
Escape invalid XML characters in C#

I have a string that contains invalid XML characters. How can I escape (or remove) invalid XML characters before I …

c# .net xml escaping
How can I get double quotes into a string literal?

I have the following output created using a printf() statement: printf("She said time flies like an arrow, but fruit …

c++ c string escaping string-literals
Display special characters when using print statement

I would like to display the escape characters when using print statement. E.g. a = "Hello\tWorld\nHello World" print …

python printing escaping character
Escaping Strings in JavaScript

Does JavaScript have a built-in function like PHP's addslashes (or addcslashes) function to add backslashes to characters that need escaping …

javascript string escaping quotes backslash
Error in strings.xml file in Android

I have declared a long string in string.xml of an application. Declared like this <string name="terms">…

android xml escaping
Escape text for HTML

How do i escape text for html use in C#? I want to do sample="<span>blah<…

c# html escaping
How can I grep for a string that begins with a dash/hyphen?

I want to grep for the string that starts with a dash/hyphen, like -X, in a file, but it's …

unix grep escaping