Questions tagged as 'ascii'

1
answer

Calculate the value (ASCII) of each word (sum of the value of the letters) of a sentence within an array

I'm doing an exercise that is about calculating the value of each word in a sentence that the user enters. I wanted to know if you could help me know how to do it, thanks! What I want to do is calculate the value of a word, or the same, calculat...
asked by 13.12.2018 / 14:44
2
answers

A doubt of hexadecimal and c

The exercise that is proposed to do in C is as follows: More or less the approach is clear to me the table represents the values of tab [] in hexadecimal and on the right its expression in ASCII, as it tells us to do it according to the...
asked by 22.07.2017 / 03:20
2
answers

Enter ascii code inside quotes c ++

Could you tell me how to insert ascii codes in "" ? For example insert 3 (decimal) which in ascii means End of text within char asd = "" . Or within string asd = "" And I also saw that \n is used to jump a...
asked by 13.05.2017 / 22:53
1
answer

Convert ASCII to binary in VB.NET

I have a problem trying to convert ASCII to binary. In effect, I am translating an AIS frame (which I used for navigation on ships) symbol by symbol on six bits from 15 (where the payload begins). And despite having !AIVDM,1,1,,A,15O86n001TJ3...
asked by 06.07.2016 / 16:34
1
answer

How to send ASCII codes to a serial port and read as bytes or characters? - C ++

In the following code I can send characters and read the bytes of these. But what should I add, delete or modify so that only the codes are sent? ASCII and to read the bytes without having to add the line char bytes_to_send[] = "hello"; ?...
asked by 17.07.2017 / 05:15
1
answer

Netbeans does not display the first characters of the ASCII table. Java

   ☺☻ ♥ ♦ ♣ ♠ • ◘ ○ ◙♂♀ ♪ ♫ ☼►◄↕! ¶§▬↨ ↑ ↓ → ← ∟↔☻↔ ▲ ▼! "" # $% & '' ()) * +, -. / 01234568 When I print the first characters in Netbeans up to ! I get an empty box, try to change the encoding from UTF-8 to ISO-8859-1 in project prop...
asked by 14.02.2018 / 14:06
1
answer

How to move from 8-bit ascii binaries to 6-bit ascii binaries?

How to move from 8-bit ascii binaries to 6-bit ascii binaries? For example, is there a link between H in 8-bit ASCII 0100 1000 and H in 6-bit ASCII 011000 ? I am referring to the article by Eric S. Raymond that was recentl...
asked by 11.07.2016 / 10:24
2
answers

How to print some characters from the Ascii table? Java POO

I have to print by console the special, numeric, uppercase and lowercase characters of the ASCII table; But it does not print anything. I tried to get the for and only this sign comes out: for each method that I call in the main. I l...
asked by 04.12.2018 / 20:41
2
answers

Remove special characters to a string in PHP?

How about? Veran I have a little problem with some strings that are full of a unicode character. My string is this: $variable = "c\u0000o\u0000d\u0000e"; Which has this unicode character: \ u0000 I would like to know how I can remove all...
asked by 09.04.2018 / 07:05
1
answer

Difference between ascii 160 and 32

my question originated when trying to compare 2 words of different origin, one of phpmyadmin and another of excel, that visually looked exact but when executing gave false the difference can be seen in sublime but then in which cas...
asked by 03.09.2018 / 16:21