Most voted "ascii" questions
ASCII (acronym for American Standard Code for Information Interchange, which in Portuguese means "American Standard Code for Information Exchange", but we commonly use the English acronym for direct reference) is a seven-bit character encoding based on the English alphabet.
Learn more…46 questions
Sort by count of
-
35
votes2
answers31112
viewsWhen to use ANSI and when to use UTF-8?
Is it more advantageous to use an ANSI type instead of a UTF-8 type or vice versa? Is there any gain in performance or storage between types?
-
5
votes1
answer6927
viewsHow to change Default Encoding in Sublime Text 3
In my work, we program in PHP mainly and all the code files were made in ASCII, I’m making some inclusions of pages and I often need to open the existing files and add new things. I do this through…
character-encoding utf-8 sublime-text ascii sublime-text-3asked 6 years, 6 months ago LuisFelipe 100 -
4
votes3
answers6503
viewsHow to avoid encoding problems when picking up data with Twitter?
I’m taking Twitter data with the package twitteR for r but the tweets are coming with encoding. Someone knows how to get around this problem? library(twitteR) library(stringr) library(ROAuth)…
-
4
votes3
answers2237
viewsConstruct string with special characters
I am building PDF’s, and I need to print a string with special characters. I am constructing the string as follows (using iTextSharp): PdfPCell teste = new PdfPCell(new Phrase("<O meu texto>…
-
4
votes1
answer567
viewsHow to convert this code from Python version 2 to 3.4?
I’m having a hard time convert the code below for the version 3.4 of Python, the purpose of this code is to encode and decode hexadecimal, in order to create shellcodes. import binascii, sys, time…
-
3
votes1
answer884
viewsError: incompatible Character encodings: UTF-8 and ASCII-8BIT
Incompatible Character encodings: UTF-8 and ASCII-8BIT. {"utf8"=>"✓", "authenticity_token"=>"3cl0R8ghLDvPMGkh0I+LCrzQjmyu1donLE9y58rIT1k=", "post"=>{"title"=>"Somos apaixonados por…
-
3
votes2
answers107
views -
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
votes2
answers131
viewsCharacter display using numeric codes: ߷
I tried to search on the subject in Google, but it was difficult because several other subjects are related, so I ask here. I am using special characters, printed from the respective numeric code,…
-
3
votes1
answer404
viewsDifferentiate Enter from Shift Enter in a textarea, obtaining the value via javascript
I have a textarea out of a form: <textarea name="textoOriginal"> Within that textarea, I can type a text, and ENTER or SHIFT + ENTER for line breaking. When I take the value of the element, I…
-
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
answer1464
viewsSend CR LF via Serial port c#
I’m communicating by Serial (SerialPort) with a device that requires me to send commands CR LF at the end of each instruction for the device to understand that an instruction has been sent to it.…
-
2
votes1
answer5078
views -
2
votes0
answers162
viewsLogic of developing a virtual keyboard in c
I create a array containing the 127 characters ascii eg list(char(0, 1, 2, 3, 4, ...)) and add an identifier with each key with each item in the list - corresponding to their respective values. I…
-
2
votes1
answer670
viewsPrinting extended ASCII in C
Look at this simple code written in C: unsigned char *palavra = "fantástica"; int tamanho = strlen(palavra); int i; for (i = 0; i < tamanho; i++) printf("%i ", palavra[i]); printf("\n"); Output…
-
2
votes3
answers8071
viewsASCII in Python
Hi. I’m from C and I’m starting to learn Python. I have a question to move the characters of a string 3 positions and in C would look something like this: str[i] += 3; I tried to do the same thing…
-
2
votes1
answer335
viewsweb service nusoap hangs with no ascii characters
I developed a web service on my php machine with NUSOAP and it worked cool, both by calling for my own application, and by testing with the SOAPUI. I transferred the web service to the server and…
-
2
votes2
answers1112
viewsReading Archives in ASCII Census 2010
Does anyone know where to download ASCII (.sas) files for reading the IBGE 2010 Demographic Census microdata ? I know that the Anthony Damico keeps only a few files on his website (see below how to…
-
2
votes1
answer75
viewsHow to make a string to be "transformed into a number"
I have an exercise to make the user type a word and it is transformed by its corresponding numbers from the ASCII table. EXAMPLE: sara would print 115 97 114 97 that’s the code: OBS: I put a fixed…
-
2
votes1
answer102
viewsProblems with C++ encryption
I’m making an encryption program that works as follows: It will read a string and then add to each character a respective prime number. Example: a(+2) b(+3) c(+5) d(+7) e(+11) = c e h k p In this…
-
1
votes1
answer1290
viewsConversion of ASCII code to characters does not work
First of all, I’m new to developing Android. I would like to know why my application hangs when I try to convert ASCII code to characters. private String crip(String str, String psw) { int code = 0;…
-
1
votes1
answer96
viewsProblem in assembling a C matrix
I have a problem with a matrix that I set up to be typed letters and these transformed into ascii table numbers, but it doesn’t print Where am I wrong? Someone can help me? #include <stdio.h>…
-
1
votes1
answer154
viewsPrint the letters in front of the alphabet
The idea of the code was to enter a letter, for example 'a' and return a letter in front of the alphabet, in this case the letter 'b', but the program does not return anything and I can not find the…
-
1
votes0
answers89
viewsTransform incoming Veederroot data
Good afternoon Person, I have looked in several places and still can not find the solution to my problem, I hope you can help me. I’m making a communication in Delhi with veederRoot through the…
-
1
votes1
answer810
viewsWhy do ASCII characters differ from Excel for presentation by code in VBA?
Does anyone know why this occurs? I need to use font characters "Wingdings 3" in Labels dynamically created in a form of VBA. If these Labels are created directly in the form the problem does not…
-
1
votes1
answer242
viewsHow to return to the beginning of a C#Array
I have to develop a code where he does the Cesar Cipher encryption, the characters I should use should be in this sequence; A~Z,(blank space),0~9. I’ve developed most of the code, only I ran into a…
-
1
votes2
answers1178
viewsDecrypt a code (as I understand it is in ASCII)
Well, basically I’d like to know if there’s any way to turn a script written in ASCII into Characters and if there is, how would I turn it? Code (1) local code =…
-
1
votes1
answer136
viewsMigration with Strange Characters?
The data is from a bank Firebird and even opening with official tools the characters do not come in the "format" br, for example: ÁGUA vem µGUA PÃO vem PÆO Find a website that provides a special…
-
1
votes2
answers7160
viewsDecimal to binary conversion in C language
The code below, from the original (http://www.programasprontos.com/algoritmos-conversores/conversao-decimal-para-binario-c/) "prints" a decimal number between 0 and 255 in binary. #include…
-
1
votes1
answer181
viewsHow to convert a character to its corresponding hexadecimal in the ASCII Ruby table?
I am using Ruby and have the string "AwX" in hexadecimal. I can write to the screen using the following command: puts "\x41\x77\x58" But I want to do the reverse: I have a string "AwX", but I want…
-
0
votes1
answer112
views -
0
votes1
answer797
viewsASCII value for char or Int value for ASCII C
Guys, I need to search for a value found by a rand in a file, I’m having a lot of problems because the rand returns me an integer and to fetch character in a file the fgetc me returns an integer…
-
0
votes0
answers114
viewsRead TXT with Extended Ascii
I made the code below to read a TXT file that contains extended char from ascii table. int main(void){ printf("%c %c %c %c %c %c %c %c %c \n",205,187,186,187,200,201,205,188); FILE…
-
0
votes2
answers323
viewsFunction that returns next character in PHP ASCII table
I would like to make a function in PHP that would receive a character and return the next character, according to the ASCII table. For example: receives 'a' and returns 'b'. I know how to do this in…
-
0
votes1
answer65
viewsHow is it decided on the writing patterns on the computer?
I know that the binary language is "written" with the hardware itself with transistor and everything else (correct me if I’m wrong). But how is it defined (0110 0001) in the ASCII standard? Through…
-
0
votes1
answer1118
viewsDecimal to binary conversion in C language using ASCII table
I have to make a program that reads some characters and "transform" each character into its corresponding number in the ASCII table and then turn that number into binary and store it in an array. My…
-
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
answers150
viewsPrint text in ASCII
Good afternoon, I am trying to print a text (ZPL code), but in my code there are ASCII delimiters, and for this reason does not generate correct impression, that is to say missing certain…
-
0
votes1
answer373
viewsASCII characters and table
I am trying to perform a URI exercise ,and in the 1 part it asks the following: In the first step, only characters that are lower case letters and capital letters shall be moved 3 positions to the…
-
0
votes1
answer417
viewsUse of c++ ASCII characters
Good afternoon, I have these codes in c++ and I would like you to explain to me why these codes are sending to the console seemingly random characters: cpp testing. #include <iostream>…
-
0
votes1
answer1893
viewsCryptography in C
I am developing a program in C, which will be able to encrypt and decrypt texts and save them to disk separately. I want to use the ASCII table for the implementation of Cryptography, I am able to…
-
0
votes0
answers714
viewsLike "draw" a binary tree?
I walk with a problem trying to create an algorithm to "draw" a binary tree as below: But I’m having trouble implementing. I’ll show my code below: #include <stdio.h> #include <stdlib.h>…
-
0
votes2
answers552
viewsChanging character values in C
I’m trying to change the value of the characters by adding the current value plus some value provided by the user: char texto[7] = "barfoo"; int tamanho = strlen(texto); for(int i = 0; i <…
-
0
votes1
answer119
viewsEncoding Node/Postegres SQL_ASCII
I have an API on Node that connects to a Postgresql database using the "pg" module, where the database in question uses the "SQL_ASCII" encoding. I do not have the option to change the encoding of…
-
-1
votes1
answer169
viewsHow do I overwrite a string with another accent without?
I wanted to replace the accented characters with others without and generate a new string, only that there seems to be something wrong in the comparison I’m trying to do in the function…
-
-1
votes1
answer93
viewsHow to return a string transformed column to a float, int?
I had to turn a column of a database into a string in order to remove the last digits of the values, which were 0.1, 0.2 or 0.3 and this would disturb my data in the future. However, by trying to…