Most voted "characters" questions
48 questions
Sort by count of
-
19
votes2
answers21759
viewsWhat are the main differences between Unicode, UTF, ASCII, ANSI?
What are the main differences between "encodings" Unicode, UTF, ASCII, ANSI? They are all really encodings or some are just "sub-categories" of others? I don’t want to know all the details of each,…
-
6
votes1
answer209
viewsWhy, when an iterator is not used, is an emoji "broken" into two parts?
Considering the code passage below: const str = 'Olá! '; str.split('').forEach((char) => console.log(char)); Note that all characters were separated from the string correctly. However, the emoji…
-
5
votes3
answers860
viewshow to increment letters in php?
I need to make a script in php that increments a letter in the received name ex: if the user type B letter need to transform it into a forward or C.
-
4
votes1
answer1246
viewsPrint special characters in c that are in a.txt file with locale library. h
My college late semester program has several screens that print large texts from arquivo.txt, however, as I do in c language, some characters do not appear, such as ç, é, ã...And so on and so forth.…
-
4
votes1
answer103
viewsHow to delimit the number of characters written per line in a "txt" output in R?
I’m writing a filelog and I want to print it on an A4 sheet. One of the parts of this filelog has a variable, with the following structure:…
-
4
votes2
answers4332
viewsHow to identify a line break character in C?
Problem: Sometimes I get an entry like (and the entrance continues) other times as: (and the entrance continues) That is, I can receive an integer, or two, or three, and then then receive a string…
-
3
votes2
answers148
viewsHow to write a JSP page using characters from other languages?
I’m writing a JSP page that uses Japanese characters and I’m using the get method, but when I switch to the post method it doesn’t work. I’ve tried to use charset = Shift_jis, but nothing!! Page…
-
3
votes1
answer50
viewsI get different results when I convert from Character to Decimal in PHP and Java
When I convert á to decimal I get the result 225 with this code in Java: public static int charToDec(String text){return (int) text.charAt(0);} When I convert á to decimal I get the result 195 with…
-
3
votes1
answer49
viewsDisplay only a maximum number of characters
My question, I believe, is quite simple, as I can do to display only a maximum amount of characters to the user, for example, 25 characters + "..." The idea is to limit the characters of these…
-
3
votes3
answers962
viewsPrinting a character in place of a number
#include<stdio.h> #include<string.h> int main() { char str[50]; int i, l = 0; printf(" We will count the number of letters\n"); printf("-------------------------------------\n");…
-
3
votes3
answers843
viewsShow the amount of each alphabet letter in a String
I’m doing an exercise in Java where the user enters with a sentence. After that, I have to list how many letters there are in the sentence, for example: Input = Daniel Henrique Exit: A = 1 B = 0 C =…
-
3
votes3
answers114
viewsReading undesirable characters - Python
A way to separate words from a string provided as in the method below: entrada = input().split(" ") Doubt: If I want to exclude more than one specific character (" ,&ˆ*!!:") not necessarily in…
-
3
votes2
answers259
viewsOptimization of multiple ifs into something more practical
I have a string alphabetical: char string[] = "aouihuiahsudasduihqmdoiqjnduiamsdoqnwuidamodkjwodkaposdj"; I want to go through it all and for every character of it, say how many times it repeats in…
-
3
votes2
answers5942
viewsHow to allow special characters in Python?
In my program I want to include characters like these in the print: , and a few more of these. I’m trying to take an array with numbers and turn them into these characters, so it looks like a…
-
2
votes1
answer163
viewsHow to remove a specific character from some specific strings within a Python list?
I have a list of examples: ['#[Header]', '#Application Name\tLCsolution', '#Version\t1.24'] I would like to know how to remove a specific character, such as the # of all elements of the list, or, if…
-
2
votes1
answer154
viewsHow to show congruent sign ( ) in cmd
I was trying to make a "design" with ascii in cmd but this character set comes out: "Ôëí", I know q is because of the character delimitation that cmd can show and etc., but can help me?
-
2
votes1
answer1166
viewsWhich Way to Recursively Remove Accented Characters from File Names
I tried other scripts I found online (*os I found), but to no avail. So I want to know some of you(s) how to do this automated/recursive task. Shell Script Taken from: https://tsgii.blogspot.com/…
-
2
votes0
answers32
viewsSpecial character query in SQL
I need to make a query in a table of emails, and I need to return only emails that have special characters. Can you help me with the script, I tried to use this code: Select * from tabela Where…
-
2
votes0
answers321
viewsRemove accent from a string in C language
I’ve got a college paper on Threads and competition control (Openmp) in C, which is giving me a bit of a headache. The job is to take a text from any file and separate it between Threads producers…
-
1
votes1
answer72
viewsURL being incorrectly generated
I’m having a problem where my website images are being pulled with special characters and makes some images inaccessible. For example: Right url:…
-
1
votes2
answers345
viewsFWRITE function is not writing in binary format in C language
I am not able to write data in binary in a file using the C language. Even using 'Wb' the output of the file are characters. How can I proceed? Here’s part of my code: void cadastrar(void) {…
-
1
votes0
answers597
viewsGET parameter with special characters
I have already scoured the entire internet for the solution of my problem and as a last resort, I come here to ask you and hope to find a solution to my problem, following: I am performing a query…
-
1
votes2
answers13897
viewsHow to remove specific position characters from a string?
I have a string read from a file that contains a data and the special new line character ' n'. Example: dado = 'teste \n' First I check the size of the string, then I can remove the last two…
-
1
votes1
answer105
viewsCharacter array does not save correctly
I’m making a program to encrypt according to Caesar’s Cipher in Java. I came across the following problem in code: package projects; import java.util.Scanner; public class Projects { public static…
-
1
votes1
answer5263
viewsString chained list (character array) in C
I’m doing a job for college, and it’s basically about hash table. At work, I have to do a Hash table of a n strings, for example. Instead of making an array of characters (in this case, an array of…
-
1
votes2
answers151
viewsHelp in code printing of repeated characters
I want to print only the characters that are repeated in string and the amount of repetitions. If it appears only once, I don’t want to print it. I need help with boolena expression. How do I check…
-
1
votes1
answer127
viewsListing directories "Client" with PHP - Error when directory name has accent
Good morning. I’ve been trying for at least two days to find a solution to the problem I’m facing. I’m still a beginner in php and that’s why so much difficulty... Well, here’s the problem: I want…
-
1
votes2
answers229
viewsHow to receive a character array in C with for?
Considering Mxn as 2x2, I need to receive in each Mxn position a character. for example: r d g h for(i=0; i<m; i++){ for(j=0; j<n; j++){ printf("Digite um caractere para a posicao %d x %d da…
-
0
votes1
answer228
viewsProblems with ã and õ in C++
Guys, I’m having a problem with special characters in C++. I watched some videos about printing special characters on the console, until then ok I can print everything except ã and õ. After several…
-
0
votes2
answers684
viewsHow to read string from a specific word?
my doubt is as follows: If I have the phrase "The rat gnawed on the clothes of the king of rome" How do I read only from "Roeu" to "roma"? This without using numbers, because there will be several…
-
0
votes1
answer172
viewsHow to Identify Carcter
I have a class who catches a String and look at the first character and if the character is empty (" ") it returns me the first letter. public String textReturn(String x){ int v1 = 0,v2 = 1; String…
-
0
votes1
answer341
viewsIs it possible to space two texts in centimeters in the same Excel cell?
As the example of the figure below. i need to tabulate in a single cell two texts so that from one cell to the other (from the same column) the texts on the right are perfectly aligned (see column…
-
0
votes1
answer7723
viewsRemove "." /" and "-" from varchar in select
I’m performing a query for a client where it requested that the CNPJ/CPF of companies/customers be displayed without the dots, bars and dashes. For example the CNPJ 08.595.551/0001-57 should be…
-
0
votes2
answers189
viewsHow to test if a string is a number in the C language?
I’m a beginner in programming. I am performing an exercise in which I must determine whether a character string is a number, considering that the user can write anything as input. So I created the…
-
0
votes1
answer883
viewsSpecial Characters - SQL
Does anyone know how I can filter only characters like in the example below ? Email Jhó[email protected] Khã[email protected] As seen above it appears ' ' ' and '~' and may also appear '.. ' or ',' and…
-
0
votes0
answers110
viewsVS Code terminal does not read accented words
I press the button to accentuate and it still appears without accent Already in the terminal of the system works normal…
visual-studio-code terminal accentuation characters mintasked 3 years, 11 months ago Ranieri Feliciano 1 -
0
votes0
answers582
viewsC - when I use the site. h scanf does not work well
I’m creating a database. I used the locale.h and setlocale(LC_ALL, "Portuguese") for accents and cediles to appear on the windows command line. Because of this when I make one scanf of an…
-
0
votes0
answers82
viewsPycharm Error Special Character Tremble
I’m having a problem with my Mac’s ABNT keyboard when using Pycharm (only with it). When typing simple quotes (') it presents a special character (square and not recognized), which disturbs at the…
-
0
votes1
answer36
viewsMysql characters
I am with a registration system in one of the fields I insert an html code: <iframe…
-
0
votes1
answer43
viewsError printing accented character in C!
# include <stdio.h> # include <stdlib.h> # include <locale.h> int main() { setlocale(LC_ALL,"portuguese_Brazil"); int Quantidade_De_Clientes, i; float Saldo_Total, Media_Total;…
-
0
votes2
answers248
viewsChecking repeated character in Python list
Hello! I’m trying to develop a program that reads a string and returns a boolean if there are repeated characters. I need enough on that score: ("") // False ("oo") // False ("po") // True…
-
-1
votes2
answers95
viewsReturn the number of characters in a word list with Typescript
I want to return a method that receives a list of words and returns an array with the number of characters of the words. I tried as below, but is returning the amount of words instead of characters.…
-
-1
votes0
answers11
viewsRegex: How to remove line breaks after commas
Editing documents in ". txt" with texts in Notepad++, I notice that there are several snippets where there is a line break after a middle sentence comma. Ex: "John was moving to work,"line breaking"…
-
-1
votes1
answer125
viewsExcel generated by PHP query returns with incorrect characters
I made a PHP query to generate an Excel report. The values are recorded correctly, as shown below: However the generated Excel returns with incorrect characters, mainly in Mandarin, rsrs, as shown…
-
-1
votes1
answer35
viewshtml and mysql special characters
People I have video registration system via IFRAME but when I want to show the iframe it is empty because the database converted Original iframe code…
-
-1
votes1
answer32
viewsI want to tweet every 240char but not recognized - Python(Tweepy)
I want the show to read. txt, record the 240char and post the tweet, and jump to the next 240char, as if you were reading and posting each line, but instead of serious line by amount of char. But I…
-
-1
votes2
answers40
viewsManual String Breaking in JAVA
Gentlemen, I am trying to do a routine that receives a certain text and a word from the user, after checking if within the text there is a word equal to what was requested. My attempt was to…
java comparison string-concatenation characters jtextareaasked 3 years, 8 months ago Gabriel Galdino 3 -
-2
votes1
answer109
viewsHow to separate a string from a file that contains a sequence of chess rounds?
I need to read a file that will be encoded as the example: 1.e4 e6 2.Nf3 d5 3.Nc3 Nf6 4.e5 Nfd7 5.d4 b6 6.Bd3 Ba6 7.O-O Be7 8.Ne2 Bxd3 9.Qxd3 c5 10.c4 Nc6 11.cxd5 Nb4 12.Qe4 Nxd5 13.Qg4 Kf8 14.Nf4…