Top "Escaping" questions

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

Command to escape a string in bash

I need a bash command that will convert a string to something that is escaped. Here's an example: echo "hello\…

bash escaping
Escaping backslash in string - javascript

I need to show the name of the currently selected file (in <input type="file"> element). Everything is …

javascript file input escaping backslash
Java: Literal percent sign in printf statement

I'm trying to add an actual percent sign into a printf statement in Java and I'm getting the error: lab1.…

java printf escaping
How do I escape ampersands in batch files?

How do I escape ampersands in a batch file (or from the Windows command line) in order to use the …

windows batch-file escaping ampersand
How to escape strings in SQL Server using PHP?

I'm looking for the alternative of mysql_real_escape_string() for SQL Server. Is addslashes() my best option or there …

php sql-server escaping input-sanitization
How do I escape the wildcard/asterisk character in bash?

For example: me$ FOO="BAR * BAR" me$ echo $FOO BAR file1 file2 file3 file4 BAR and using the \ escape character: …

bash shell escaping
Escaping single quotes in JavaScript string for JavaScript evaluation

I have a project, in which some JavaScript var is evaluated. Because the string needs to be escaped (single quotes …

javascript string escaping eval
Convert International String to \u Codes in java

How can I convert an international (e.g. Russian) String to \u numbers (unicode numbers) e.g. \u041e\u041…

java unicode escaping unicode-escapes
Java replace issues with ' (apostrophe/single quote) and \ (backslash) together

I seem to be having issues. I have a query string that has values that can contain single quotes. This …

java string replace escaping backslash
How to escape the equals sign in properties files

How can I escape the equals sign (=) in Java property files? I would like to put something as the following …

java properties escaping