a datatype that can hold a character of the implementation’s character set.
Questions tagged [chars]
208 questions
0
votes
1 answer
Wordpress: When logged-in characters well displayed, log out, wont recognize them
When I am logged-in, the Spanish special characters like ñ or accentuated vowels display well. When I log out, the web pages show those special chars as weird chars.So it is being in a session that makes the change. This will mean that all visitors…

Arminius
- 606
- 1
- 6
- 19
0
votes
1 answer
Segmentation Fault Error (C)
I am currently writing a program that is supposed to receive input from a text file and output statistics about the text such as the number of letters, size of words and how often they occur, and how many times each word occurs. However, every time…

Noah210012
- 89
- 9
0
votes
1 answer
C - fread char from file
I have a dummy program which writes some chars in a file :
int main (int argc, char **argv)
{
char i = '0';
int j = 0;
FILE * fp = NULL;
fp = fopen("num.txt","w+");
if(!fp){
printf("fopen failed\n");
return -1;
…

Asdemuertes
- 313
- 3
- 6
- 19
0
votes
2 answers
Trying to convert a text file (ifstream) into a 2D array of chars in c++
I've been trying for about 2 days and i think I've come close but still no cigar!
I have a text file that looks like this:
++++++
+H +
+ +
+ +
+ X+
++++++
if i try to print it out normally, everything works:
void Level::LevelPrinter() …

Mr.Trainee
- 15
- 5
0
votes
2 answers
iterating a string with results formmated into an object inJS
I have a function which produces the result of a string into an object with the letters counted as values of the properties in a key/value format.
var output = countAllCharsIntoObject('banana');
console.log(output); // --> {b: 1, a: 3, n: 2}
My…

tonycor nikolauos
- 475
- 5
- 9
0
votes
1 answer
Function to remove unwanted chars - SQL Server
After a bit of research I found out how to remove a series of unwanted characters from a string. I am planning on throwing this in a function and calling it when needed.
However usually when I program or code something I just want it to work rather…

user2230423
- 69
- 1
- 1
- 5
0
votes
2 answers
How to get rid of "Rogue Chars" in an .txt encoded under UTF-8
My program is reading from a .txt encoded with UTF-8. The reason why I'm using UTF-8 is to handle the characters åäö. The problem I come across is when the lines are read is that there seems to be some "rogue" characters sneaking in to the string…

Erik
- 67
- 1
- 10
0
votes
2 answers
Converting an "HTML entity" emoticon code in UTF16 (in c++)
I'm currently writing my own DrawTextEx() function that supports emoticons. Using this function, a callback is called every time an emoticon is found in the text, giving the opportunity to caller to replace the text segment containing the emoticon…

Jean-Milost Reymond
- 1,833
- 1
- 15
- 36
0
votes
1 answer
Password restrictions to support international travellers
Yes, using any restrictions on the letters that a user can put in his password weakens security. But on the other hand: have you ever tried the Euro sign (€) on a Thai keyboard? Or a German Umlaut (Ä) on an English keyboard?
For this reason I have…

Eddie
- 109
- 1
- 11
0
votes
1 answer
How to handle unicode chars in Java
I have been trying to achieve the following :
I want to be able to paste a string of Unicode characters ex : without java showing them as being unrecognized. How do I make a Java JTextPane able to handle Unicode characters?

Alde
- 428
- 1
- 5
- 20
0
votes
0 answers
counting chars that use delegates (vb.net)
I have been struggling for a while on how to count characters using delegates on vb.net (console application). If anyone is able to explain how to this, I would greatly appreciate it. Thanks.
0
votes
1 answer
Converting unicode to hex
I have cyrillic word in my js file which charset is UTF-8 without BOM.
How can I get hex index of unicode table of my first character?
The word "Абв" and result must return hex code "0x0410".
I tried this code, but it returns wrong result:
var code…

Macedonian
- 47
- 11
0
votes
3 answers
Where in the ruby doc is string.chars defined?
I've been learning ruby by solving project euler problems and in one solution to a problem I saw you could do something like "12341".chars.inject(1) { |prod, n| prod * n.to_i }.
I've looked on the ruby doc but I can't find where String#chars is…

PaddyDwyer
- 475
- 3
- 8
0
votes
2 answers
Duplicated output when counting chars in a string with Linq
I have this problem with my output of this code which outputs how many times a character in a string is mentioned.
class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine().ToLower();
string…

Thenis
- 61
- 1
- 10
0
votes
2 answers
PHP Regular expression to get words with repeated chars in a string
I'm trying to get the words in a string with repeated chars.
For example: "II loooovve this video. It's awesooooommeee."
How can I get the result:
loooovve
awesooooommeee
?

user1201779
- 35
- 5