Questions tagged [ascii]

A character-encoding scheme based on the ordering of the English alphabet. ASCII stands for American Standard Code for Information Interchange.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How does the Visual Studio console decide how to represent non printable ascii characters?

I am working with encodings. My byte array contains ascii NULL (\0), END OF MEDIUM (\u0019) and FILE SEPARATOR (\001c). (link) Encoding.ASCII.GetString(bytesRequest) manages to decode the characters ...
AjStar08's user avatar
0 votes
1 answer
22 views

Pixel Art Square

I am creating a pixel art of a 64x64 Pixel image on my terminal using Python. The Problem is that it is ASCII and because of that the image always comes out as a rectangle and not as a square as you ...
vince's user avatar
  • 825
0 votes
0 answers
29 views

Replace ASCII HTML characters when loading JSON

I'm loading a JSON file made up of yelp restaurant reviews so that it removes Unicode characters this way: def parse_yelp_restaurant_api(self, response): jsonresponse = json.loads(response....
Maurizio Brini's user avatar
0 votes
2 answers
53 views

KOTLIN - How to represent message length as 2 binary bytes

I am facing a problem while building an integration between ECR (electronic cash register) and an android POS. I'm working on the android POS and i want to calculate the message size and add it in &...
Pointyhat's user avatar
  • 467
0 votes
2 answers
48 views

How to compress text length using Unicode and bases, and be able to revert it back?

There are 44 characters in this text: the quick brown fox jumped over the lazy dog The same text can be represented with just 11 Unicode characters: 񜥎񐟾𴬔񇒉𚫔𮹂𓻣񥯨񜥎𵁼񽤙 (These characters look the ...
1m7's user avatar
  • 1
0 votes
1 answer
46 views

How can I properly import a fixed-with ASCII file into R that has two different record types?

I'm trying to extract the 2021 Hate Crime Master File from the Crime Data Explorer into R. https://cde.ucr.cjis.gov/LATEST/webapp/#/pages/downloads (Scroll to Master File, select "Hate Crime"...
Kayla Ehman's user avatar
1 vote
1 answer
39 views

When I write moof box from mp4, the ASCII code is reversed

I am trying to extract the 'moof' box from movie box in isobmff foramt. // It is assumed that the movie box contains fragment data. ISOMovie moov; MP4MovieFragmentAtomPtr moof; FILE *fp; fp = fopen(&...
Kundera's user avatar
  • 83
0 votes
0 answers
17 views

How to read the asc file generated using writeRaster in terra by VB6?

I can use VB6 to read the values of the ASC file generated by writeRaster in raster in R. However, the ASC file generated by writeRaster in terra cannot be read by VB6 by value or by line. It can only ...
user1617676's user avatar
-1 votes
1 answer
27 views

ASCII Animation for Website like Midjourney [closed]

I've come across the Midjourney Website and fell in love with the ASCII Animation. I've gone through some reddit/stack overflow posts, but couldn't find any useful answers. So I wanted to ask again, ...
martyxfly's user avatar
0 votes
0 answers
53 views

C# WinForms how to have a console inside a form

So I'm working on a project called PteroController, and I'm trying to find a way to display a console inside a form, so I can show the console output I get from a web socket, which can be color coded ...
KoolKidDev's user avatar
0 votes
2 answers
34 views

'Errno 2 no such file or directory' Problem with white space in directory path while using subprocessing module Popen command

I have the following code that lets me run a .py file by using the subproccessing library The code import subprocess process = subprocess.Popen('python C:/Users/Example User/Projects/file.py', stdout=...
Trynabal's user avatar
0 votes
0 answers
10 views

Follwing the "https://stackoverflow.com/questions/56987505/how-do-i-decompress-a-dsn6-file-into-a-readable-format" to extract electron density data

`import sys` `from importlib import reload `import struct `import numpy as np`` `reload(sys)` `#sys.setdefaultencoding('Cp1252')` `#sys.setdefaultencoding('utf-8')` `#Type = sys.getfilesystemencoding()...
fariba's user avatar
  • 11
-1 votes
0 answers
17 views

Printing the printable ASCII characters from all 8-bit values as a string in Python3? [duplicate]

I simply want to print out all bytes from 0 to 255 as an ASCII character list string, such that if that byte cannot be decoded to an ASCII character, it is simply not shown in the list string. I have ...
sdbbs's user avatar
  • 4,346
1 vote
0 answers
24 views

How to get output in UTF-8 from libraries like base64 [duplicate]

I have a base64 string in python that is not in ASCII format, so I want base64.b64decode(string) to output UTF-8 rather then ASCII. Sample base64 string: mBkVO/Me3Awiy94yFCagxA== Sample output: \x85\...
inyourface3445's user avatar
1 vote
5 answers
113 views

Batch script crashes due to ASCII. What could I do?

I've "programmed" Rock, Paper, Scissors in a batch script. It used to work fine until I incorporated ASCII art. The script runs smoothly until I input a number between 1 and 3, after which ...
Why Not's user avatar
  • 11
0 votes
1 answer
27 views

Is there any free email provider with Internationalized Domain Name (IDN)?

I just added support for recipients with IDN in an application that I'm building, but I cannot properly test this feature without having a domain with non-ASCII characters. Is there any free service ...
Thomas Scalise's user avatar
-1 votes
1 answer
52 views

how to print 2 nested grids to console in C++?

I'm trying to print a grid inside each of the cells of another grid. to be specific. imagine a 7x7 grid which each cell is 3x3. also i need padding between each cells of parent grid. for the second ...
TheDarknesS's user avatar
0 votes
0 answers
19 views

Keras save function not working with ASCII character in file path

I'm following the Keras text classification tutorial, the entire tutorial worked flawlessly. Next, I wanted to try the .save and .load function, that's where a problem occured. The code line : ...
Guigui's user avatar
  • 21
0 votes
0 answers
14 views

URL Encoding on Chrome

On my Wordpress URLs with non-ASCII characters display correctly in Safari but not in Chrome on my WordPress site. I've attempted to fix the issue by manually adding UTF-8 to the HTML, but it hasn't ...
Alihassaneddehbi's user avatar
1 vote
3 answers
33 views

Make a Python variable update everytime the script runs

I've got a Python script that sends requests, it sends headers and data. I'm able to send, and its working. I've got a ONE of the headers that are being sent, a variable. That variable is being ...
isaiahstanke's user avatar
1 vote
0 answers
66 views

How to change color of a Unicode text character in C++

I am working on an ASCII 3D game engine and I don't know how to color a character using this current setup. The goal is to make each character a different color to add to the shading. I am using ...
RED91's user avatar
  • 11
1 vote
1 answer
60 views

3D Retro ASCII game taking up 25% CPU, any way to optomize?

I'm working on a Wolfenstein 3D style FPS using Windows Command Prompt and ASCII only. When I added shading, the program suddenly started taking 25% of my CPU, (1 core), and was running at 2-4 fps. Is ...
AtomicUnleashed's user avatar
-1 votes
1 answer
78 views

Python: TypeError thrown when performing simple ASCII decryption

I am creating an encoding and decoding algorythm based on the python os "ord" function. I have built the encoder which works by multiplying the output of the ord function by a randomly ...
Ruben Sutton's user avatar
1 vote
0 answers
249 views

Trying to understand CHAR(10) and CHAR(13) in SQL Server

I have read many articles explaining what CHAR(10) and CHAR(13) actually are. I have no problem with CHAR(10), it is simply a line feed or a new line. I do not understand how CHAR(13) behaves in SQL ...
Lokesh Pande's user avatar
0 votes
0 answers
10 views

Why is my console not being cleared in python?

Im trying to do an ASCII character animation in python but console doesn't clear. All various variants of clearing console method print 2-3 symbols but will not clear the console. I'm Using Visual ...
Shaheer Ul Islam siddiqui's user avatar
0 votes
1 answer
27 views

Arduino bluetooth keyboard immolator sending unexpected ASCII characters

I have two buttons attached to accelerometers and Adafruit Bluefruit nRF52 Feather boards. I have written a program in the Arduino IDE to basically read acceleration during a button press, map the ...
grace.cutler's user avatar
2 votes
0 answers
30 views

How to integrate Ascii-to-Svg with HUGO

I am new to HUGO/GO so need basic example of generating SVG diagrams using AsciiToSvg in my static website. I have imported the required module in config.toml as below, following this article: [[...
Anjum's user avatar
  • 183
0 votes
0 answers
26 views

OBITools3 Attribute error: 'str' object has no attribute 'isascii' error

I am using the OBITools3 to try to analyze DNA metabarcoding data. I have had the same error come up multiple times when trying to run obi commands, such as obi taxonomy or obi alignpairedend. My code ...
Tiff-D's user avatar
  • 25
1 vote
1 answer
66 views

Remove ASCII control characters from string

I have a df that contains a column with string values in it. Some of these strings are a combinations of characters and dates, some characters and numbers. There are some instances where the string ...
MKN17's user avatar
  • 61
-2 votes
1 answer
206 views

How can I print ASCII characters from 128 to 255?

I want to print the following ASCII characters using the C programming language on Windows OS: #include <stdio.h> int main() { for(unsigned int ch=128 ; ch < 256 ; ch++) { ...
user366312's user avatar
0 votes
0 answers
20 views

Does an encoding that uses ASCII characters after 0 (; :, etc) to encode A, B, C exist?

When decoding ASCII hex numbers, you have to take into account the fact that characters A to F do not follow 0 to 9 in the ASCII character set. This could easily be circumvented to use the characters ...
Bart Friederichs's user avatar
1 vote
1 answer
82 views

Why is '0' put in this the putchar function when I want a number printed

I am trying to print numbers using the putchar() function. Here's my code below: int main(void) { int x = 0; for (; x <= 9; x++) { putchar(x + '0'); } } _putchar('\n'...
SJP's user avatar
  • 31
-2 votes
2 answers
81 views

printf of a char in C with absurd values

I searched a lot on the internet trying to find the reason for the line below to work normally in C: printf("%c", -999); When the complete ASCII table goes from 0 to 255 or from -127 to 127 ...
Igor Castilho's user avatar
0 votes
0 answers
39 views

Auto-translation of newline character in the terminal

I'm following along here. I notice (this is not complete, just for demonstration) that at this point: #include <termios.h> raw.c_iflag &= ~(ICRNL | IXON); raw.c_oflag &= ~(OPOST); ...
user129393192's user avatar
1 vote
2 answers
45 views

Stack and array in assembly 8086

data segment S db 20 dup('$') T db 'true$' F db 'false$' A db 'Wabbit$' ends stack segment dw 128 dup(0) pile: ends code segment start: mov ax,...
alaa albast's user avatar
0 votes
1 answer
45 views

How to convert a long vector of class character containing non-ASCII unicode characters to their escaped version?

I have an R package in which I have a list of university names that I want to match to the user input. The list of names contains special characters and this is generating a warning in R CMD check: ...
rempsyc's user avatar
  • 825
1 vote
2 answers
75 views

Converting hex to ASCII with perl -e

I want to print the ASCII equivalent of hex in perl -e in one line. perl -e "print 0x41;" I'm getting 65, but I want the output to be A How can I convert from hex to ASCII in just one line ...
abhi_ps's user avatar
  • 21
-1 votes
1 answer
82 views

The equivalent of C# ASCII code in PHP language

I want to implement this block code in PHP for bank payment. Can anyone help me? Thank you. ASCIIEncoding ByteConverter = new ASCIIEncoding(); string dataString = "Data to Sign"; ‬ byte[] ...
masood jooibar's user avatar
1 vote
0 answers
78 views

How to escape character to become a string (ex: \u001 to "\u001")

Encoding.ASCII.GetString(new[] { (byte)1 }) // this outputs "\u0001" in the debugger, but the value is a char Encoding.ASCII.GetString(new[] { (byte)9 }) // this outputs: "\t" in ...
Aventil's user avatar
  • 51
1 vote
1 answer
33 views

How do you insert ASCII art that displays in the Elements tab of the Dev tools window?

I’m trying to display some ASCII art to show inside the Elements tab—NOT console.log—when someone inspects a webage. I’m using React, so I don’t have access to the final build, which happens on the ...
Sujan Sundareswaran's user avatar
0 votes
0 answers
36 views

Yara command line throws non-ascii character error

I want to test Yara but when I try the following rule I get a non-ascii character error: rule basetest{ strings: $string1="pay" nocase $string2="immediately" nocase $text_sample=&...
Kornuptiko's user avatar
1 vote
2 answers
53 views

I read an ascii file with bash script and I want to test the value after a certain chain of caracter

Here is the ASCII file : ` `! ========================================================== &input NB_PROC = 4, !! NUMBER OF PROCESS MULTIPROC = 1, !! ...
Brunodu94's user avatar
3 votes
3 answers
95 views

How can I print a 128-255 character from an integer in C?

I'm still playing around with C to understand how it works. I'm having trouble printing characters from the extended ASCII table (128-255). If I do printf("Â") (for example), it prints  (...
someonearth's user avatar
0 votes
0 answers
59 views

Problem with reading string and its pattern? [python]

I am running a code on a fasta file (the structure is shown below). This file has multiple entries where the header (seq id) of the entries starts with the ">" sign. The following lines ...
Apex's user avatar
  • 1,055
0 votes
0 answers
19 views

What document file format; uses ascii characters only, preserves page layout, and opens in MS word?

I am writing a python app that will edit and output a text file. I want the text file to be similar in function to a well formatted html page. I thought odt files were plain text with formatting tags ...
Molly's user avatar
  • 69
0 votes
0 answers
59 views

How can I edit the three.js AsciiRenderer (AsciiEffect) so it has a higher resolution at the same aspect ratio?

I'm trying to add the react three AsciiRenderer to STL models in my next.js project and if I make the resolution higher than the default (0.15) it seems to squish the width. In dev tools I was able to ...
ryan.svg's user avatar
0 votes
1 answer
69 views

CheckSum8 Xor in TwinCAT 3

I need to calculate the CheckSum8Xor (like on this website: https://www.scadacore.com/tools/programming-calculators/online-checksum-calculator/) but on twinCAT3. Working with strings like "$...
Ivan Félix's user avatar
0 votes
1 answer
27 views

Python - wierd UnicodeEncodeError

I am using Python 3.6 in centos server, and I am trying to write a script outside the scope of django (though it is installed). All the script need to do is some kind of logging, but it may have ...
Xerix's user avatar
  • 401
0 votes
0 answers
39 views

Convert non Ascii hyphen to ascii cpp

Convert non Ascii hyphen (-) which is bighypen to ascii, when I pasted big hyphen in VI editor it is pasting like this (▒~@~S). I have a requirement to identify this and replace with ASCII hyphen.
Kalyan Srujan's user avatar
0 votes
1 answer
51 views

PHP Dec to 256 ASCII char and keep the Dec value on copy

Need help, I have a string that goes to an encryption that returning an array of a set dec values like : [0, 1, 22, 33, 44, 55, 66, 77, 88, 99, 100] To make it seem like a non readable I want to ...
far1023's user avatar
  • 113

1
2 3 4 5
139