You are not logged in.

#1 2010-10-25 16:03:25

Thor@Flanders
Member
Registered: 2010-08-27
Posts: 266

[SOLVED]Where is the backtick?

Hi,

Ok, granted, this IS a silly question, but here goes: where/how to I get the backtick from?

The normal single quote crashes my SQL...

Update restolist set name='Bill's place' where ID = 1

The single quote in the name makes the SQL crash...so I'd have to substitute the others with a backtick...mySQL can accept that...

BYW : I am Flemmish, so this is a AZERTY layout...

I tried this

ALT-96

But that worked in the old days (yep, now you all know HOW old I am big_smile ...)
Any nudge (in the right direction, mind ya) would be appreciated...

Tnx

Thor

Last edited by Thor@Flanders (2010-10-25 16:50:27)

Offline

#2 2010-10-25 16:10:24

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [SOLVED]Where is the backtick?

Not sure about your keyboard but on most it is to the left of "1" underneath the tilde (~).


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2010-10-25 16:50:06

Thor@Flanders
Member
Registered: 2010-08-27
Posts: 266

Re: [SOLVED]Where is the backtick?

Thanks!

Found it...does not solve the SQL thing, but at least I'm back on track!

Thanks!

It was right where I left it... big_smile

Wellness

Thor

Offline

#4 2010-10-25 17:05:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Where is the backtick?

Maybe you should use double quotes?

"Bill's place"

Offline

#5 2010-10-25 18:53:16

Thor@Flanders
Member
Registered: 2010-08-27
Posts: 266

Re: [SOLVED]Where is the backtick?

Hi,

Well, I used some Java Magick

theString = theString.replaceAll("'", "`");

Replaces all the "dangerous" quotes with the harmless backtick...

Is Java COOL or what?

Thanks!!!

Thor

Offline

#6 2010-10-29 18:37:46

barto
Member
From: Budapest, Hungary
Registered: 2009-10-22
Posts: 88

Re: [SOLVED]Where is the backtick?

Regarding your original question, you may try

xmodmap -pke | grep "grave"

("grave" is actually the official name of backtick)
You will get a line telling you which button backtick is mapped to in the form of

keycode <keycode> = <button alone> <button with Shift> <button alone> <button with Shift> <button with AltGr> <button with AltGr+Shift> <button with AltGr> <button with AltGr+Shift>

In my case (Hungarian layout):

keycode  16 = 7 equal 7 equal grave dead_grave grave dead_grave

It can be decoded to the fact that "grave" is AltGr+7. Which is in fact a fact. smile

I hope it will be helpful.


“First principle, Clarice. Simplicity” – Dr. Hannibal Lecter

Offline

Board footer

Powered by FluxBB