View Full Version : [ubuntu] How can I write characters using the ascii code?
DeepSeaNautilus
March 16th, 2009, 05:24 PM
Hello, I am using ubuntu 8.04. I want to write characters using the ascii code, like ALT + 56, but I can't. How can I solve this?
LegendofTom
March 16th, 2009, 05:41 PM
How are you doing this? With Bash?
DeepSeaNautilus
March 16th, 2009, 06:16 PM
Yes, I am using bash
jwbrase
March 16th, 2009, 06:28 PM
Hello, I am using ubuntu 8.04. I want to write characters using the ascii code, like ALT + 56, but I can't. How can I solve this?
Alt+XXXX is an input method that was originally programmed into DOS and made it's way into Windows. It doesn't work in Linux simply because it's an entirely different system. You can go to System->Preferences->Keyboard, and then to the Layouts tab to see if you can set up a keyboard layout that has the character you want. What character are you looking for?
casaredondo
March 28th, 2009, 04:42 AM
I often use special symbols, like to type "It was 78° today.", using the degree symbol. Couple of others I use regularly.
Anyway, under Windows you'd do ALT+0176 to get the degree symbol, but under Ubuntu that doesn't work.
Here's how to make them. CTRL+Shift+U, then release the U and type in the unicode for the symbol. For the degree symbol it's 00B0 (zero zero b zero).
Here's a Unicode table to find the ones you use.
http://www.alanwood.net/demos/ansi.html
Agent ME
March 28th, 2009, 05:18 AM
If you set your keyboard to use the "USA International (AltGr dead keys)" mode (under System -> Preferences -> Keyboard -> Layout) then you can use special symbols easily by using the right alt button.
Examples -
é is rAlt+e.
° is rAlt-shift-0-0 (press 0 twice while holding the other buttons).
CatKiller
March 28th, 2009, 02:11 PM
You can also use the Compose key (http://en.wikipedia.org/wiki/Compose_key) to generate symbols that aren't included as keys on your keyboard. Here is a list (http://www.hermit.org/Linux/ComposeKeys.html) of some Compose key combinations.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.