Correct ASCII value of Pound sign - ascii

I am checking for the ASCII value of the pound sign (£). I've found multiple answers:
http://www.ascii-code.com/ Says A3 = 163 is the ASCII value of the pound sign.
http://www.asciitable.com/ Says 156 is the Pound sign and 163 is some other character.
http://en.wikipedia.org/wiki/Pound_sign : Says Alt+163 and Alt+156 both are the ways to type pound sign in US keyboard. I assume here 163 and 156 means ASCII values. (But only 163 works for me)
What is the correct way?

156 is not the ASCII value for anything. ASCII is 7 bit, and only goes to 127.
163 in Unicode and Latin-1 (aka ISO-8859-8) is the pound sign

There is no ASCII code for the pound sign. ASCII only defines codes 0-127 in the tables you've linked; everything beyond that is extensions. You'll need to determine which extension to ASCII you're using.
The pound sign has number 163 in Latin-1 (aka ISO-8859-1), and number 156 in code page 437. It also has number 163 in Unicode, though you'll need to encode it as more than one byte.

On PC make sure the Num Lock is on first. Then Hold down ALT and type 0163 on the numeric keypad. You will get £.

Related

Trying to use xTerm to send command or control key combinations

when using xTermJS, I am trying to use a UI to send commands, rather than just typing.. It's the project..
So, I sometimes need to send key combinations. Running on a Mac, I need to send "control+X" aka ^X
However, it doesn't seem like this is possible? At least not that anyone has published. IS it possible? I can use ASCII and hex characters to send, return, shift, arrow keys, etc. Can I do this "control" and/or "control+X" combination?
Ascii representations of decimal 0 through 31 are all escape codes representing combinations of the Ctrl key plus another character. The ascii characters used are taken from 4 rows below (add 64) on the ascii chart (decimal 64 through 94). For example
decimal 64 is ascii # => decimal 00 is ascii Ctrl + #
decimal 65 is ascii A => decimal 01 is ascii Ctrl + A
decimal 66 is ascii B => decimal 02 is ascii Ctrl + B
(some ASCII tables represent the Ctrl key with the carat '^' symbol as in ^# instead of Ctrl + #)
The chart image below shows the binary, octal, decimal, hexadecimal and escape codes/ascii representation for the first 128 values. As an online reference I recommend this ASCII Table (from the excellent reference website SS64.com). Or you can modify this spreadsheet and make your own ascii chart. This version has the original control code names once used by teletype machines.
Ok, just as I was posting this querstion, I found the answer.
I found it here: https://mw.lojban.org/papri/List_of_ASCII_letterals#ASCII_control_code_chart
under ASCII control code chart, under ^X which has the ASCII code of 18, which I send to xTermJs as \x18. This immediately solved my problem.
Seems like even these character combinations are defined as 1 ASCII character, and not 2 used together. In this case, my Control+X character is actually called a "Cancel" character.

How to type Ascii characters with more than 3 numbers?

Is there any way to type ASCII characters with more than 3 numbers using the numpad?
For example, if I hold Alt and type in 445 it prints out ¢.
How can I type in numbers like this: 195 128?
According to this table, it have to be À.
But if I type in 195 128, I get the number 8.
What's wrong?
Windows ALT key entry only supports the ANSI and OEM code pages of the localized version of Windows you are using.
For US Windows (xxx denotes a decimal value from 0-255):
ALT-0xxx = code page 1252 (link)
ALT-xxx = code page 437 (link)
So ALT-0253 should give ý and ALT-253 should give ².
The character you want (À) exists in cp1252 and is ALT-0192.
If you type a number >255, the character displayed is modulo 256. For ALT-445 you should get the same value as ALT-189. I do not get ¢ so you probably have a different localized version of Windows. Code page 850 is the Western European OEM code page and would generate the character for ALT-189. Try ALT-183 for À.
You need to type Alt+0192 for À.
Here is a useful link with correct alt codes: https://usefulshortcuts.com/alt-codes/accents-alt-codes.php

ASCII + Numeric Keypad

I believe I have a standard Win7 Pro setup. I know that when I hold down the alt key and type some digits I can get the extended Ascii character set, up to 255. But I've also noticed that when I type alt+larger numbers I get different code pages. In this text box I can type alt+ plus sign and then 0254 and I get what seems to be this Cryllic letter þ And alt plus +sign+ 0232 gets this: è (e with accent aigu) and so forth. Is there a list of how these alt + plus sign + 3 digits maps to what letter?
Looking at these characters in Notepad++ I see that they are generated by 0xC3 0xBE and 0xC3 and 0xA8. BUT if I type alt+195 (which is 0xC3 in Decimal) followed by 190 (0xBE) I get two different charcters (mapped to 190 and 195). How does the app know to combine the two? There is nothing in the raw data to show that?

what is UTF-8 code page equivalent of ASCII 128 to 160

The UTF-8 code page doesn't include the character of the rage 128 to 160 of Extended ASCII
what is the equivalent code in UTF-8 of this characters?
such as Bullet, En dash, Em dash etc.
Try this page. just search by name, code or almost anything you want.
http://www.fileformat.info/info/unicode/char/search.htm

UTF-8 charecter - UC2-Decimal(150).How to handle this char?

In my app some UTF characters like – whose value is UC2-Decimal(150),UC2-Hex(0096),UTF8-Hex(C296) which is fetched from some website, cannot be displayed properly in the browser.
It displays some unwanted characters.
Can anyone help me on this?
I have no idea what UC2-Decimal and UC2-Hex mean, but you seem to be talking about Unicode code point 150 (decimal) or 0x96 (hex). This Unicode character exists but it isn't what you are looking for: it's an obscure control character in the C1 series known as "SPA". Presumably this is the problem!
The character which you actually copied in your question is U+2013, known as "EN DASH", a valid character. Its UTF-8 representation would be the three-byte sequence 0xe2 0x80 0x93.

Resources