Questions tagged [ascii]
A character-encoding scheme based on the ordering of the English alphabet. ASCII stands for American Standard Code for Information Interchange.
6,647
questions
0
votes
1
answer
24
views
C I am Getting Wrong Output
I have a C code, When I run the code, different symbols appear where there should be underscores.
int main(void){
char matrix[32][63];
int i,j;
for(i=0;j<32;i++){
for(j=0;j<...
0
votes
0
answers
7
views
JS .atob fails to encode base64 string
I've got 2 images, one 130kb the other 4MB of size. The smaller one is being encoded with .atob just fine but the larger one throws this error:
Failed to execute 'atob' on 'Window': The string to be ...
0
votes
1
answer
20
views
Getting wrong character encoding when selecting with PostgreSQL in Node.js
I'm trying to get some data from PostgreSQL using Node.js, but when I use SELECT * FROM table it returns me wrong characters, but in console it didn't happen.
Only ASCII characters are shown, but not ...
0
votes
1
answer
29
views
Putting decoded bytes in dict changes back to original?
I am trying to decode some bytes to ASCII, but when decoding to ASCII and putting it in a dict, it changes back to the bytes format (?)
b = b'Hello\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
...
3
votes
1
answer
46
views
How to output a Multiline Character Image in the console
I am developing a text-based game and I want to make the title something catchy. I tried to use a text to ASCII converter to make a nice-looking title and then copy and paste it in my code to output ...
1
vote
1
answer
28
views
Converting a Raw String back to Hex Characters
I have a series of hex characters that I've needed to convert to a raw string in order to apply a modification to it:
chars = r"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\...
2
votes
1
answer
34
views
How to I set a symbol inside the record separator of awk
How do I include symbols into the record separator of awk. I know the basic syntax like this:
awk 'BEGIN{RS="[:.!]"}{if (tolower($0) ~ "$" ) print $0 }'
which will separate a ...
0
votes
0
answers
7
views
Dataset of Consolas Regular Font
TLDR
Is there a dataset with every letter in consolas regular size 11 font as an image corresponding to its appearance in a console? If not, is there a quick way to generate this dataset?
Context
I ...
2
votes
2
answers
59
views
byte[] with ASCII values to string to int
So someone took int value, converted it to string then converted it to ASCII values and then finally to byte[] with inconsistent length 1 - 4 bytes.
e.g. 100 -> "100" -> { 49, 48, 48 }....
-1
votes
0
answers
83
views
Is there a way to convert a .bin file to an ASCII file in C++?
I am new to C++ and wanted to know if a .bin file can be converted to an ASCII file (ASCII file is to be loaded onto EXCEL for further data analysis). The binary log file contains a bunch of messages (...
-1
votes
0
answers
16
views
How can I force a string to ignore characters like "\"?
The thing is that my current project uses ASCII graphics (something like this: https://www.asciiart.eu/animals/bats). And as you understand, there are quite a few \ and other characters that C# ...
0
votes
1
answer
41
views
How to print unique ASCII in Eclipse's console?
How can I print ASCII characters that are not added in the Eclipse Console? I need to use some charachters to my game and every time I get "?" or smething like that? For example I woudl like ...
-3
votes
0
answers
32
views
Converting Images to ASCII art using Python & Python Imaging Library
I'm currently trying to write a program that converts images into ASCII art in Python using Python Image Library
Here's what I got so far:
import PIL.Image
# ascii characters used to build the output ...
0
votes
0
answers
30
views
Comunicate with printer
Put beforehand, I've never work or study anything like that, at my workplace they gave me this Printer and I need to find out a way to let it comunicate (and print) with my pc throught STM32cubeide ...
0
votes
1
answer
15
views
Which is the correct encoding for a degree character?
I have a line of code that alters text
temperature<-as.numeric(gsub("°.*","",temp))
R does not like the "°" character. When I save the file it says I need to use a ...
0
votes
0
answers
25
views
Python / tcp / ascii / How to be able to send an ascii command to a server while continuously receiving incoming ascii string from the server?
I'm working on a project related with some naval radar and how to use the data that its internal "server" sends while rotating about other ships.
the documentation for the radar protocol: ...
2
votes
1
answer
60
views
How do i use \ (backslash) in a here-doc and have it show up when I print?
print <<EOTEXT;
(`-') (`-') _<-. (`-')_ <-. (`-')
_(OO ) ( OO).-/ \( OO) ) .-> \(OO )_
,--.(_/,-.\(,------.,--./ ,--/ (`-')----. ,--./ ,-.)
\ \ /...
0
votes
1
answer
23
views
How to display text next to ascii art (in terminal) in NodeJS?
I would like to display some ascii art in this format:
_,-, Name: Powerful Axe
T_ | Rarity: Yellow Rarity (77.5)
||`-' Attack: 100
|| Defense: 100
|| Speed: 100
~~ Gold Value: 10
an ...
0
votes
0
answers
21
views
why code page's characters doesn't have continuous hex value and how their hex value get generated?
Let's take Code page 37 for example
https://en.wikipedia.org/wiki/Code_page_37
I have two questions:
Q1-what does horizontal 0.. F and vertical 0x .. Fx stand for? I mean, for example how does 2F is ...
-1
votes
0
answers
29
views
Invisible Symbols that work for Steam and Team Fortress 2
I'm your average video gamer but I have a unique taste for unique names, thus I am in the search of a completely invisible Arabic/Hebrew Unicode character, aka characters like these.
Those weird ...
0
votes
0
answers
15
views
How to you make a string variable, that goes by it's number? For example uppercase A is 65. ASCII Charts
I want to have it so the user is prompted to enter the second string, that will sort lower alphabetically than the first string. I don't understand how to make a string a number? Do I even need to do ...
0
votes
1
answer
48
views
C standard header file for non-printable/control character constants
So, whenever I need to reference certain ASCII control characters I find myself doing junk like this:
#define STX 2
#define ETX 3
Is there some C header file found in most development environments (...
-1
votes
1
answer
54
views
using function to encrypt/decrypt a string [closed]
I'm tryna figure out how to encrypt/decrypt a string using a single function that takes a string and an offset as parameters. depending on the offset, the function encrypts or decrypts and builds new ...
-1
votes
2
answers
64
views
In Java, how to expose and remove non breaking characters from uri [closed]
I'm writing code that loops through a list of folder uri's and checks to make sure the folder actually exists on the file system. For folders that don't exist, the code will output the uri of the ...
0
votes
0
answers
10
views
What should I do if someone was toxic on one of my posts? [migrated]
Recently someone was very toxic on one of my (now deleted) questions. I know there is a lot of information regarding this topic, but my reputation is not high enough to do anything about this. What am ...
-1
votes
2
answers
112
views
arrange line in txt file in ASCII order using array and display them
#include <stdio.h>
#include <string.h>
#include <fstream>
#include <iostream>
using namespace std;
int main() {
ifstream infile; // ifstream is reading file
...
0
votes
1
answer
46
views
Convert column value to Ascii using division and mod in sQL SERVER
I have a table in SQL SERVER as below with many columns like below
| D401 | D402 |
|------------------------------|------------------------------|
| ...
1
vote
3
answers
99
views
Convert EBCDIC data file to ASCII
I have an EBCDIC data file which is variable length.
Inside this file, it contains binary data (comp), packed-decimal (comp-3), display-numeric (pic (9)), and string (pic (x)).
How to convert it to ...
1
vote
1
answer
35
views
Hexadecimal to ASCII string in Pandas
I have this pandas datafreme
data1_txt = """
Name
0x41
0x4a
0x47
"""
df = pd.read_fwf(io.StringIO(data1_txt))
As you can see it's in Hex and I need to convert it to ...
0
votes
1
answer
30
views
Read string in ascii and insert on database
i need to convert this string, the string most by convert is with '@' on the begining the variable can't change
@"\5B)>\1E06\1DY" + variable1 + @"\1D" + variable2 + @"\...
0
votes
0
answers
51
views
ASCII Table does not format as I want it to be
I'm making a discord bot using MySQL, the database stores some usernames and passwords. I fetch the data from the table in MySQL to format it in an ASCII table. The expected output was to be like the ...
0
votes
1
answer
33
views
C# Console is outputting box characters as "?"
I am making a game in ascii for fun and I have an issue where the characters are not printed in the way that i have expected them.
instead of the characters being printed normally, it instead prints ...
0
votes
2
answers
81
views
Storing a char into an int variable
I am learning about implicit conversions in C++. And i read the following example:
char a;
std::cin>>a; //I can enter an integer like 56 here
std::cout<<a<<std::endl; //for the input ...
0
votes
1
answer
24
views
ASC files not preserving empty columns when added to df Python
I have a load of ASC files to extract data from. The issue I am having is that some of the columns have empty rows where there is no data, when I load these files into a df - it populates the first ...
0
votes
1
answer
52
views
Formatting Integer in Python
This is the Request I get from an BMD Hyperdeck, it contains the Video-files on the SD-Cards an the lengths of the Videos. I need the lengths of every file, separate in a List for my Code. What would ...
1
vote
0
answers
24
views
Build an ASCII from a vtu
I am trying to investigate the connectivity and points data from a Paraview vtu/vtk file by looking at it in ASCII format. Shown in code block below is part of my vtu file. I know how to build a numpy ...
0
votes
0
answers
26
views
reformat ascii table in R with pander
I have the following problem...
I want to paste this ascii table from R into a reporting software (GE Viewpoint Ultrasound Reporting Software)
pander::pandoc.table(mpg[1:3, 1:3])
The resulting table ...
0
votes
0
answers
18
views
Trying to remove the header between combined ascii files in python
I am a compelete newbie to python and i was asked to combine a batch of ascii files. Each of these files are uploaded by the user and they all have a header at the top and bottom. The output (combined)...
0
votes
0
answers
29
views
Renaming columns with a dictionary Python
I have a lot (1200) ASC files that I need to extract data from. The issue I am having is sorting the files out. They have different headers and differing lengths of random stuff at the tops of the ...
0
votes
0
answers
16
views
Java problem to convert String Hexa to Ascii always add C280 instead 80
I need to convert this string hexa
001C60000100010800200001000080000099000000014F43503030303138
to ascii String but this strings is sent throug a TCP socket but server always receives this String
...
1
vote
1
answer
32
views
VSCode : mvbasic extension on editing Unidata code with MV marks in code, ie CHAR(253), CHAR(254)
I have searched for a setting within the mvbasic extension within VSCode but I may have hit a dead end. I am new to using VSCode with the rocket mvbasic extension and still in the learning process, so ...
1
vote
1
answer
36
views
Send terminal command through Pyserial ascii format
I would like to create a Python programm like a terminal to send some request with Pyserial.
But when I send a request like "dataid 60000 get value" it show me an error message like :
...
0
votes
2
answers
71
views
Parsing ASCII floor plan image in python?
I am trying to identify the number of rooms and furniture(S,C,W,P) in an ASCII floorplan. A typical floorplan looks like this with different rooms and layouts. What would be the best way to tackle ...
0
votes
0
answers
30
views
UnicodePython 3: EncodeError: 'ascii' codec can't encode character '\xe4'
I am trying to send some emails with pandas from an excel-file.
I have this error for over a week now and even after hours of searching through SO, google, forums and so on, I just can't come u with ...
0
votes
1
answer
28
views
java equalent of HEXTORAW Function In Oracle
Hi I want the java equalent of HEXTORAW Function In Oracle .in oracle you can use :
SELECT hextoraw(to_char(ascii('z'))) from DUAL;
that generates 0122 or use
SELECT hextoraw(to_char(ascii('C'))) ...
0
votes
1
answer
22
views
TabPy Tableau Convert Dimension where each row is in Hex to ASCII with calculated field with Python
I have a Dimension in Tableau where each row is in Hex (Tableau Datatype is string, but these values are actually hex). I want to convert this dimension (each row) into ASCII with Python Code (TabPy (...
0
votes
0
answers
63
views
Removing unicode BEL \u0007 special character from json string
I have a JSON response from 3rd party API, and I am trying to convert that into XML file using c# code.
Response field in text view:
"description":"\u0007\tPost-show meet & greet ...
0
votes
2
answers
58
views
Regex For Special Character (S with line on top)
I was trying to write regex in Python to replace all non-ascii with an underscore, but if one of the characters is "S̄" (an 'S' with a line on the top), it adds an extra 'S'... Is there a ...
0
votes
1
answer
18
views
How to allocate a buffer of fixed-length characters in dart?
I need to allocate a buffer of ASCII characters of fixed length because I receive a (index,7-char chunk) tuples in random order from a distant device.
In C/C++ I would do:
char buffer[3*7+1];
memcpy(&...
0
votes
0
answers
73
views
Extracting data from pcap files
I am trying to extract NetFlow Records from a .pcap file, however the data comes up in a non-readable format, like on the attached picture below.
I am unsure how to convert this into a readable format....