Questions tagged [character-codes]
20 questions
0
votes
1 answer
How come the pound sign '£' in Haskell is shown as '\163' instead of outputting '£'?
I'm trying to write a program that writes the pound sign '£' in Haskell, but it outputs '\163' whenever I try to use it. I'm guessing that this is some alphanumeric code, but how do I get it to display what I want it to? I'm writing to the console,…

Jonathan
- 11
- 1
0
votes
1 answer
Windows Constants for Ctrl+X, Ctrl+C, and Ctrl+V
I've got some older MFC code I wrote that I'm "freshening up" a bit. I have the following code in a window class' OnChar() handler.
I really don't like using constants like 0x18. I'd like to make the code more readable. I know I can declare my own,…

Jonathan Wood
- 65,341
- 71
- 269
- 466
0
votes
1 answer
What does the X mean in hexadecimal character codes for HTML?
The format for a hexadecimal character code in HTML is:
... where 00 is the UTF-8 or ASCII code of the character.
Obviously the & and the ; are somewhat arbitrary codes, and the # indicates that a numerical code is being given rather than…

brentonstrine
- 21,694
- 25
- 74
- 120
0
votes
1 answer
Java character codes
I'm looking for terminator characters in Strings using indexOf.
// character codes to look for
int[] defseps = new int[] {10, 13, 34, 36, 38, 39,41, 44, 59, 63, 93, 125};
int t = 999999999; // big number, We want first terminator
int tempt =…

Nigele2
- 33
- 4
0
votes
1 answer
Javascript Unicode Conversion and Search
I'm wondering whether anyone has any insight on converting an array of character codes to Unicode characters, and searching them with a regex.
If you have
var a = [0,1,2,3]
you can use a loop to convert them into a string of the first four control…

AaronF
- 2,841
- 3
- 22
- 32