THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

Greg Low (The Bit Bucket: IDisposable)

Ramblings of Greg Low (SQL Server MVP, MCM and Microsoft RD) - SQL Down Under

Entering a backslash when using UK keyboard layout on US keyboard

This is more for my own reference than anything else but today I was needing to enter a backslash key while using a US keyboard but with UK keyboard settings.

After trying pretty much every key on the keyboard in all combinations, I realised there was no key combination that would do this directly. Curiously it's a common problem and I found untold blog and forum entries that were not helpful. They basically said to change your input to US when using a US keyboard.

I figured there is always a way of entering a character by its code and of course this works. If you have a keypad, you can enter <Alt>92 and you'll get a backslash. That's all I needed in this case.

Published Monday, July 14, 2014 7:12 PM by Greg Low

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Enrique Madrid said:

The Brits are too polite to backslash over anything :-)

July 14, 2014 10:00 AM
 

ed (English) said:

The funny is thing is that I recently bought a laptop from eBay and it has a us keyboard so this is really I useful!

I've just been using the us layout but prefer uk!

July 29, 2014 3:12 PM
 

David from Kenya said:

Thanks a bunch buddy, that was really helpful.

September 19, 2014 7:15 AM
 

Zacy5000 said:

Or you could use 'Alt Gr + The normal US button for backslash'.

Alt Gr is the one to the right hand side of the space bar and the normal US button for the backslash is next to the enter button and shift key (may slightly differ on different keyboards). This is much easier then using the Alt code.

December 11, 2014 3:40 PM
 

nish said:

alt gr+ The normal US button for backslash'.not working

December 27, 2014 10:49 PM
 

good said:

THX alot greg.. very helpful

January 4, 2015 9:50 PM
 

Zacy5000 said:

you may need to have the US keyboard as a secondary keyboard on the computer.

January 28, 2015 8:33 AM
 

Ricky said:

@Zacy5000 - this does not work unfortunately.

February 19, 2015 12:26 PM
 

Ironsfan said:

ALT 92 works perfect, Thanks a bunch mate!

March 8, 2015 1:57 AM
 

payal said:

atl 92 is not working

April 8, 2015 11:05 PM
 

Greg Low said:

Are you trying this while in UK settings on a US keyboard?

April 8, 2015 11:18 PM
 

Darren said:

Try Ctrl + alt + (# or whatever the backslash button on your keyboard is). This works on my asus laptop when I change it to UK layout.

April 15, 2015 1:44 PM
 

Greg Low said:

That's the point though. On the keyboard I was using, no key did this, with or without other key combinations.

April 15, 2015 5:41 PM
 

Phil said:

Brilliant - I had IT people struggle with this, until my wife found your post!

Thank you

May 14, 2015 8:36 AM
 

sid said:

nice working

May 19, 2015 4:09 PM
 

Sarah said:

I found this post because I have the same problem on my HP Chromebook 11. (It's not Windows, but rather Google Chrome OS, but still the same problem.) That is, I have a UK keyboard layout set but I have a physical US keyboard.

I'm not sure how much, if at all, this applies to Windows, Mac, or Non-ChromeOS linux, but one thing that works for me is to do AltGr+Hyphen for the back-slash. And, although one can make the (previously) allographic equivalent of a vertical line, it's only a broken bar ( ¦ ).

Hope this helps for any Chromebook users out there! ^-^

June 23, 2015 3:17 PM

Leave a Comment

(required) 
(required) 
Submit

This Blog

Syndication

Tags

No tags have been created or used yet.
Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement