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
2 answers

Turkish character bug in mb_strtoupper function of PHP

My question is rather explanation for the Turkish colleges who have troubles with our funny characters. It is for sure PHP 5 has a bug by capitalizing and also therefore collating them. echo mb_strtoupper('Turkish capitals for ğ, i, ı, ş in…
2
votes
3 answers

What's the benefit of the trailing apostrophe in character literals

I am writing my own programming language and am reconsidering many aspects of my syntax right now. Something that bothers me in many most languages is the trailing apostrophe in character literals. Example With trailing slash: 'n' Without trailing…
Noel Widmer
  • 4,444
  • 9
  • 45
  • 69
2
votes
1 answer

Encoding issue: how to let console print "ć" instead of "c"?

I am working with data from all possible European languages. R does not recognize special characters correctly, e.g. "ć" instead of "c". > "ć" [1] "c" I have come accross this various times and found workarounds (read.csv, and other functions have…
Doctor G
  • 163
  • 9
2
votes
1 answer

Have a double column be a character column when loading data in R

I am trying to load a database There is a column which contains quite long strings which correspond to code numbers (for instance 078000000000000000) When I load the data, R turns these numbers into double (so 7,8 E+15) If I try to turn it into a…
MBB
  • 347
  • 3
  • 18
2
votes
1 answer

How to get unicode code point(s) representation of character/string in Swift?

As a generic solution, how can we get the unicode code point/s for a character or a string in Swift? Consider the following: let A: Character = "A" // "\u{0041}" let Á: Character = "Á" // "\u{0041}\u{0301}" let sparklingHeart = "" //…
Ahmad F
  • 30,560
  • 17
  • 97
  • 143
2
votes
2 answers

Ensure first and last characters of text box are numbers c#

Im currently creating a windows form that must only allow a password through when it matches certain criteria. Im close to finishing however im a bit stuck with one element. "the first and last characters of the password HAVE to be numbers". looking…
2
votes
3 answers

android edittext inputfilter should accept space,character & number

street = (EditText) findViewById(R.id.street); InputFilter filter = new InputFilter() { public CharSequence filter(CharSequence source, int start, int end,Spanned dest, int dstart, int dend) { for (int i = start; i < end; i++) { …
swapnil
  • 51
  • 1
  • 4
2
votes
2 answers

Error when setting a character to a string in C

hey guys I need your help. I'm trying to extract a character from a string and set it as the 2nd element of an array of strings. Yet as usual C is giving me segmentation faults, Ive tried sprintf, strcpy, and still segmentation fault the code…
Syntax_Error
  • 5,964
  • 15
  • 53
  • 73
2
votes
2 answers

How to compare Chars in C# short way

I'm wondering if there is a short way to compare one Char to many Chars. In my code I read a Key for Yes or No [Y/N] then i will check if the Char is 'Y' Or 'N'. This is the Long Way: if(myChar == 'n' || myChar == 'y') { .... It tried(didn't…
Mr Sausage
  • 21
  • 1
  • 2
2
votes
1 answer

How to count characters in a textarea containing tags

I want to be able to count the number of characters in a textarea, and report out to the customer when they have run out of chracters. I have done that just fine, but now I need to add some more functionallity and I am lost where to start. Basically…
Davemof
  • 79
  • 1
  • 5
2
votes
2 answers

Getting a text file of asian characters with C++

I am completely new to programming, and I am teaching myself C++ via Dr. Bronson's book. I have looked at other fixes and I don't understand them. I am trying to do a project where I convert numbers to their phrase value. 1 = One, 2 = Two, etc. I…
Chris Harding
  • 27
  • 1
  • 8
2
votes
1 answer

Limit number of text outputted using Meteor blaze

I have an app that accepts the 1000 minimum character as input, when I want to display it on the screen only about 400 characters should be displayed but I seem not to have found away of how to do this. This helper class returns an object, so via…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
2
votes
0 answers

"" inside URL - NGINX

How is the globe-character embedded into the URL like WhatsApp Web did? I can't find a way to add the character into the nginx configuration and also google is not giving me a clue. How they added that awesome character?
Lazcano
  • 190
  • 8
2
votes
1 answer

Is there a Four-Per-Em Space character - but as NO-BREAK Space?

I had a look around the web but did not find something suitable, so here is my question: Is there a Four-Per-Em Space character - but as NO-BREAK Space?
Thariama
  • 50,002
  • 13
  • 138
  • 166
2
votes
2 answers

Put even characters in uppercase, but skipping spaces

I'm trying to convert some text so that every even character becomes uppercase. This works, but if there's a space between words, the code takes the space as a character too. So for example, if the input text is "this is a test", the output is "tHiS…