Questions tagged [character-codes]

20 questions
151
votes
8 answers

What's HTML character code 8203?

What does the character code (HTML) ​? I found it in one of my jQuery scripts and wondered what it was.. Thanks. Edit: Here is the script it was in (it was added to the end, found it in Firebug)
Kyle
  • 65,599
  • 28
  • 144
  • 152
37
votes
5 answers

Converting a character code to char (VB.NET)

I'm able to convert a character to its corresponding character/ASCII code using "Asc(CHAR)". What can I use to convert this returned integer back to its original character form?
Freesnöw
  • 30,619
  • 30
  • 89
  • 138
18
votes
3 answers

Python get character code in different encoding?

Given a character code as integer number in one encoding, how can you get the character code in, say, utf-8 and again as integer?
user975135
13
votes
3 answers

Chrome doesn't display special character while other browsers do

I am trying to display character code ❯ in a breadcrumb trail navigation which forms this arrow: ❯ It displays properly in Firefox, Opera, and IE but not in Chrome. Am I doing something wrong, or is this a bug in Chrome? Are there any…
Keavon
  • 6,837
  • 9
  • 51
  • 79
8
votes
2 answers

Non-breaking space in Flutter string interpolation

From time to time I need a non-breaking space in my Flutter Text widgets, e.g. a "Show more" link or a number with unit like "50 km/h". The following code works fine but it looks overly complicated: const int $nbsp = 0x00A0; // from…
RobDil
  • 4,036
  • 43
  • 52
7
votes
3 answers

Java: Shift all character-codes inside a String by a constant value

This works: for (char c : sourceString.toCharArray()) destString += (char) (c + shiftValue); System.out.println(destString); Is there a better/faster (optimized) way?
Mir-Ismaili
  • 13,974
  • 8
  • 82
  • 100
4
votes
1 answer

What the character codes are in the cmap table in TrueType fonts

Wondering what the "character codes" are for the cmap table in TrueType fonts. Microsoft talks about the Character to Glyph Index Mapping Table, but I don't see what the character or glyph index mean. Wondering if somewhere in the font file you…
Lance
  • 75,200
  • 93
  • 289
  • 503
2
votes
1 answer

Character code representation of decimal digit

Differentiate between the character code representation of a decimal digit and its pure binary representation I study computer science and this is a concept I need to know for the exams but I am not sure I fully understand it Character code…
Newbie101
  • 501
  • 2
  • 6
  • 17
2
votes
2 answers

What font glyphs map to if they are not part of Unicode

I am trying to understand the anatomy of a font file, and wondering about how glyphs are mapped to keyboard characters. As part of that, I am also wondering what you do when you have font glyphs that are not part of unicode, such as with FontAwesome…
Lance
  • 75,200
  • 93
  • 289
  • 503
2
votes
2 answers

How to add up the numeric values of character codes in python using a for loop

I have my own name saved as a string under the variable name. I want to find the character code for each character in my name and then add them all up using a for loop. This is what I've started with, no idea if it's staring about the right way name…
Ash
  • 35
  • 2
  • 9
2
votes
2 answers

Prevent HTML character codes from being rendered in textarea

Is it possible to display HTML character codes stored in a text field in SQL to a textarea without rendering them as their appropriate character? i wasnt & to show up as & (the way it's stored in the table). Or is their a way I should be…
seanmetzgar
  • 164
  • 1
  • 9
1
vote
1 answer

Is it possible to test for breaking spaces?

I'm trying to parse minimal mark-up text by lines. Currently I have a for loop that parses letter by letter. See the code below: Text: This is some text that represents accurately the way I have written my…
nastetajup
  • 11
  • 1
  • 4
1
vote
3 answers

Special Character Meanings Defined

In Python's module named string, there is a line that says whitespace = ' \t\n\r\v\f'. ' ' is a space character. '\t' is a tab character. '\n' is a newline character. '\r' is a carriage-return character. '\v' maps to '\x0b' (11). What does it…
Noctis Skytower
  • 21,433
  • 16
  • 79
  • 117
1
vote
1 answer

using keycodes to trigger events

I'm using the following code to detect a key being pressed: $(document).keyup(function(event) { // the event variable contains the key pressed if (event.which == x+65) { alert(numToChar(x)); } }); "B" is keycode 66;…
Ragas Dev
  • 11
  • 2
0
votes
0 answers

How to know character code when texts in a log file are written

Below is in the log file. > [32m??????[00m > [33m?≪?SDH?梧昭絽檎?????祉???儀??賢?с???[00m I want a spedific command run. The command send EDI data from application server to EDI base server. Some sort of error occured so I opened a log file. How can I…
Lilly
  • 47
  • 5
1
2