escaping Questions
5
Solved
On GitHub I want to build a table containing pieces of code in Markdown. It works fine except when I put a pipe char (i.e. | ) between the backtick (i.e. ` ) chars.
Here is what I want:
a | r
-...
8
Solved
I wrote the database schema (only one table so far), and the INSERT statements for that table in one file. Then I created the database as follows:
$ sqlite3 newdatabase.db
SQLite version 3.4.0
Ente...
Philoprogenitive asked 2/3, 2009 at 19:12
2
I am attempting to query based on a string in SQLite, but the problem I have run into is when a string contains a double quote ("). I have yet to figure out how to escape it.
I am using DB Bro...
10
Solved
I haven't been able to get ffmpeg's drawtext video filter to draw apostrophes/single quotes when they are in drawtext's "text=" parameter, even when I escape them. Double quotes work fine, and apos...
16
Are there any classes/functions available to be used for easy JSON escaping? I'd rather not have to write my own.
12
Solved
I want to grep for the string that starts with a dash/hyphen, like -X, in a file, but it's confusing this as a command line argument.
I've tried:
grep "-X"
grep \-X
grep '-X'
6
Solved
When writing file paths in C#, I found that I can either write something like "C:\" or "C:/" and get the same path. Which one is recommended? I heard somewhere that using a single / was more recomm...
4
I know that the escape function has been deprecated and that you should use encodeURI or encodeURIComponent instead. However, the encodeUri and encodeUriComponent doesn't do the same thing as escap...
Clime asked 13/10, 2014 at 14:14
2
Solved
Having the autoescape property on (I want to keep it that way), I want user to be able to enter some custom markup, to have the opportunity to format text. For example, [s][/s] will be translated i...
4
Solved
If I had a string variable:
String example = "Hello, I'm here";
and I wanted to add an escape character in front of every ' and " within the variable (i.e. not actually escape the characters), h...
2
Solved
The secrete API key I want to store in my environment file for my express server is ignoring half of it as it contains a # symbol in the middle. I can't regenerate the key. And do not want it to be...
6
Solved
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 the quote just next to that quote closes the field. I'm rea...
7
Solved
The day came when I had to write a BASH script that walks arbitrary directory trees and looks at arbitrary files and attempts to determine something regarding a comparison among them. I thought it ...
6
Solved
I have a web service that receives data from various clients. Some of them sends the data encoded using escape(), while the others instead use encodeURIComponent(). Is there a way to detect the enc...
Seersucker asked 14/8, 2009 at 3:48
4
Solved
I am trying to get an email template together. The message content will be dependent on values within a dictionary. However, the dictionary might not contain all the keys each time.
This currently...
Kailey asked 22/1, 2015 at 17:5
6
I've lots of string values containing single quotes which I need to insert to a column in REDSHIFT table.
I used both /' and '' to escape the single quote in INSERT statement.
e.g.
INSERT INTO...
Bloodshed asked 28/12, 2017 at 0:50
34
Solved
I have some JavaScript code that communicates with an XML-RPC backend.
The XML-RPC returns strings of the form:
<img src='myimage.jpg'>
However, when I use JavaScript to insert the strings i...
Godderd asked 16/12, 2009 at 5:27
8
Solved
Is there a function in PHP that can decode Unicode escape sequences like "\u00ed" to "í" and all other similar occurrences?
I found similar question here but is doesn't seem to work.
5
I have a field in one of my tables that contains this string:
!"#¤%&/()=?´`?=)(/&%¤#"!\'\'"'
(Only for test purposes ofcourse). I've tried endless of queries to properly select this fiel...
11
Solved
I have declared a long string in string.xml of an application.
Declared like this
<string name="terms">PLEASE READ THESE TERMS OF USE CAREFULLY BY ACCESSING THIS .................</stri...
4
Solved
I have this query:
SELECT DISTINCT
f.CourseEventKey,
(
SELECT f.Title + '; ' AS [text()]
FROM @Facilities
WHERE CourseEventKey = f.CourseEventKey
ORDER BY f.Title
FOR XML PATH('')
) Facili...
Infeudation asked 17/4, 2014 at 17:52
3
Solved
Placing the following within a script will fail:
$MyString = @'
hello
@'
'@
bye
'@
write-host $MyString
The error returned is as follows:
At C:\scripts\test.ps1:6 char:1
+ '@
+ ~~
The string i...
Scincoid asked 19/10, 2016 at 9:47
3
I have a batch file which is attempting to run the following:
FOR /F "tokens=1" %%G IN ('git show --pretty="format:" --name-only 54173344ab18a7d8e9ff2614cca62b671c8c7e2a') DO ec...
Pitching asked 29/10, 2014 at 21:40
3
Solved
I'm trying to write a git alias that removes from the commit messages the string "[ci skip]" (placed at the end of the message), but I'm having problem with escaping. The alias takes all the commit...
2
For instance, in Nodejs you have path.sep, in Java you have File.separator. Do you have something similar in mysql? If not, which would be the best way to deal with path separators in a way that wo...
© 2022 - 2024 — McMap. All rights reserved.