Questions tagged [character]

Refers to a symbol that represents a letter or number. Also, the bit pattern used to represent such a symbol.

In computer and machine-based telecommunications terminology, a character is a unit of information that roughly corresponds to a grapheme, grapheme-like unit, or symbol, such as in an alphabet or syllabary in the written form of a natural language. Examples of characters include letters, numerical digits, and common punctuation marks (such as '.' or '-'). The concept also includes control characters, which do not correspond to symbols in a particular natural language, but rather to other bits of information used to process text in one or more languages. Computers and communication equipment represent characters using a character encoding that assigns each character to something — an integer quantity represented by a sequence of bits, typically — that can be stored or transmitted through a network. Two examples of popular encodings are ASCII and the UTF-8 encoding for Unicode.

7762 questions
2
votes
3 answers

Compare and display characters if they are in string/array or if they are dont exists

I cant wrap it around my head on how to compare a char of a string to an element in a string or an array. The result I'm looking for goes like this, I want to check the word concept for the letter c. At the same time still display the word concept…
whisk
  • 713
  • 1
  • 10
  • 34
2
votes
2 answers

Basic character counting in C

Having trouble getting an actual count, but I'm not seeing what I'm doing wrong. I type in a word, hit enter, then nothing happens and it keeps running. int main(void) { double nc; for (nc = 0; getchar() != EOF; ++nc) ; printf…
Wayne
  • 23
  • 2
2
votes
2 answers

Jetty 9, character encoding UTF-8

I have a problem with encoding and Jetty. All my files are encoded in UTF-8 and include the correct HTML meta tag to specify UTF-8. Until now all my UTF-8 files had a BOM and I had no problem. But now I am using a different text editor and I noticed…
Vincent
  • 51
  • 1
  • 6
2
votes
4 answers

jQuery Character Counter for Multiple Inputs

I have about 8 text inputs. They all get concatenated with PHP in the end, but for ease of use for the users, I broke it up into multiple "questions". The fields all end up getting concatenated and used in an SMS enviroment where there is a 160…
LostInQuery
  • 519
  • 4
  • 19
2
votes
2 answers

sapply and apply give different results with is.character()

I was trying to convert tolower the features of my dataframe that are of type character and found out this post: tolower I build up a function to do so on several data.frames and finally discovered that all my features were treated as characters! …
chapelon
  • 133
  • 2
  • 8
2
votes
1 answer

Assign colors to a data frame based on shared values with a character string in R

I'm working in R. I have many different data frames that have sample names in them and I'm trying to assign a color to each row in each data frame based on the sample names. There are many rows that have the same sample names in them, but I have…
Jesse
  • 244
  • 2
  • 15
2
votes
1 answer

IOS - What is the ObjC NSObject equivalent of Swift Character type?

I've been meaning to constrain input to one character only, and instead of using String and checking for length, I decided to go with Character. The problem is that I can put it in an NSArray, but the type becomes a _SwiftValue, so I don't know how…
funct7
  • 3,407
  • 2
  • 27
  • 33
2
votes
4 answers

Insert a string into another string efficiently

I have char aa[] = { "Hello, !" }; char bb[] = { "World" }; How to insert bb into aa the most efficiently with cstring ?
Pythagoras of Samos
  • 3,051
  • 5
  • 29
  • 51
2
votes
1 answer

Benefit of interpreting blank space elements as valid factor elements in the R function factor()?

The base R function factor() interprets character elements consisting of blank space as valid factor elements instead of NA. What is the benefit of interpreting blank space character elements like this? Is it a legacy feature that is kept as it is…
CarlAH
  • 217
  • 1
  • 9
2
votes
2 answers

How to dynamically create an escape sequence?

I'm trying to make a program that can dynamically form an escape sequence character. Please take a look at my code below. void ofApp::keyPressed(int key){ string escapeSeq; escapeSeq.push_back('\\'); escapeSeq.push_back((char)key); …
Zack Lee
  • 2,784
  • 6
  • 35
  • 77
2
votes
3 answers

vim: how to remove 6 leader characters of a whole file?

I've got a text file like 00001 This is line 1 00002 This is line 2 10001 ?? 30004 xccddd I wish to delete the leading 6 characters of all lines. Is there a one line vim normal mode command that could do this?
Hind Forsum
  • 9,717
  • 13
  • 63
  • 119
2
votes
1 answer

Reducing font glyphs to create webfonts with only latin characters?

How can I take a font file and remove all glyphs that are not standard latin characters (A-Z, 0-9, special characters, etc)? For example I downloaded the FreeSans font from GNU FreeFont, but it contains thousands of characters from all languages. I…
Sosa
  • 814
  • 1
  • 9
  • 20
2
votes
2 answers

Convert time values to numeric while keeping time characteristics

I have a data set which contains interval times of different events occurring. What I want to do, is convert the data into a numeric vector, so its easier to manipulate and run summaries/make graphs etc, while keeping its time characteristics. Here…
useR
  • 101
  • 1
  • 8
2
votes
3 answers

Outputting a specific place in a string to a variable

I have a long log file that looks like: 2016-06-09 09:44:33 0 Appname C:\folder\file.ext­ 2016-06-09 09:45:33 0 Appname C:\folder\file.ext 2016-06-09 09:46:33 3010 Appname C:\folder\file.ext 2016-06-09 09:56:33 0 Appname…
Rakha
  • 1,874
  • 3
  • 26
  • 60
2
votes
1 answer

Check for visual presence of character on page?

I'm in an odd situation where I need to check, via a test, that a currency symbol is being properly displayed on our web page. We've been running into issues where sometimes the unicode alphanumeric value is showing up on the page instead of the…
Matt Ober
  • 118
  • 6
1 2 3
99
100