English 中文(简体)
What is ` character called?
原标题:

I feel silly for asking this but it isn t like I could google this.

What is the ` character called? In case it doesnt show up, it is the character used for inline code with markdown. Also, on most keyboards, it shares the key with ~.

I like all three answers so I made this a CW instead of accepting

最佳回答

All sorts of things, but in programming mostly the back-quote or backtick,

问题回答

Grave (pronounced Grahv, not like the synonym for tomb) or Grave accent.

From the Jargon file, the prime nerd reference which really should be an ISO standard :-)

Common: backquote; left quote; left single quote; open quote; ; grave.

Rare: backprime; backspark; unapostrophe; birk; blugle; back tick; back glitch; push; opening single quotation mark; quasiquote.

You can use Unicode table to find name of the symbol. There are utilities which let you search it, like gucharmap. It gives U+0060 GRAVE ACCENT for this symbol.

This answer or this answer provides a good definition.

In laymen s terms "no-shift-tilde" is also useful in PHP for keeping mySQL statements from crashing on single quotes on the table name.

SELECT * from `the_table_name` WHERE id=1 // best practice

For some reason certain PHP servers will choke on this:

SELECT * from  the_table_name  WHERE id=1 // not preferred method

This normally works, but doesn t pass nice in strings:

SELECT * from "the_table_name" WHERE id=1 // how to escape this string?

Other than that, I don t use it much.





相关问题
xml and html escaping special characters

i store my article in a xml file, so if i write into it special characters " xml automatically escapes this characters and when i get(via PHP) the xml content i get something like ". so if i write ...

C# Special Characters not displayed propely in XML

i have a string that contains special character like (trademark sign etc). This string is set as an XML node value. But the special character is not rendered properly in XML, shows ??. This is how im ...

Storing special characters in database

Can somebody provide some best practices when storing special characters such as the trademark (tm or r) or copyright (c)? I am storing them in a varchar field with other text in SQL Server, and ...

java regular expression , how to add [ to expression

I want to create a regular expression for strings which uses special characters [ and ]. Value is "[action]". Expression I am using is "[\[[\x00-\x7F]+\]]". I tried doing it by adding \ before ...

热门标签