6,972 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
3
answers
75
views
How to identify a specific ASCII character in Excel?
I received a file to process that had some extra spaces causing issues such as:
"DATE "
I first tried TRIM, but it did not help. I did find the solution by using SUBSTITUTE(A1, CHAR(160),...
1
vote
1
answer
83
views
How to turn numbers to their relevant letters?
I'm creating a Microsoft Access program and I have a calculated column that looks like this:
Round([chance]/20)
I've tried adding in the ascii tab
Ascii(Round([chance]/20))
and its making a set of ...
Advice
2
votes
5
replies
148
views
How to use space as an delimiter when the entire string is made up of spaces?
I've written a program that takes in a text then prints the binary translation of it. İts been working perfectly fine until I tried the case where entire string is just made up of spaces. As to ...
Best practices
0
votes
4
replies
132
views
How to search through Unicode text with ASCII input in Python
I have a corpus of text which includes some accented words, such as épée, and I would like people to be able to easily search through it using ASCII input. Ideally, they would simply type protege or ...
1
vote
1
answer
111
views
Why are Grep highlight sequences not read with `pty`?
I was experimenting with creack/pty while learning about pseudo terminals.
I spawned grep and hooked it up with a pseudo terminal device as follows:
package main
import (
"fmt"
&...
2
votes
2
answers
284
views
Why does my ASCII animation keep scrolling down instead of updating in place on Windows console?
I’m trying to create a simple ASCII 3D spinning cube animation in the Windows console using C++:
#include <iostream>
#include <cmath>
#include <cstring>
#include <windows.h>
#...
2
votes
0
answers
116
views
Bypassing C64's PETSCII to screen code mapping
In upper-case mode, the C64 PRINT ASC("A") prints 65 - the ASCII/PETSCII code.
But POKE 1024,65 prints the shifted A character. PRINT CHR$(65), however, prints the proper 'A' character.
With ...
3
votes
1
answer
235
views
Delphi tstringlist encoding default
I have noticed recently (maybe a change in recent Delphi) that if I load an ASCII format txt file into a tstringlist, edit a line with file.lines[10]:='blah', and then save it again the file is now ...
0
votes
1
answer
184
views
How to use character arrays with Win32 APIs in C++ Builder 12
I am experimenting with C++Builder 12, trying to port some old code from C++Builder 2009.
In that old code, all character strings are defined, for example, like this:
char testString[256]="This ...
1
vote
0
answers
80
views
printer italic font ascii (no html tags os font styles)
We are using citizen/HP printer to print receipt.
to print Bold characters uses following code
string Bold = Escape + (char) 33; // u001b!
string BoldStart = Bold + (char)8;// u001b!\b
string BoldEnd =...
0
votes
7
answers
318
views
How does '0' + (n % 10) convert an integer digit to its character representation in C?
I'm learning about converting numbers to characters in C, and I came across the expression:
char c = '0' + (n % 10);
I understand that '0' is a character and n % 10 extracts the last digit of a ...
-1
votes
2
answers
163
views
convert a VHDL string to an integer ascii equivalent
Suppose I have VHDL code that has a generic string STACK with the value "top". I want to pass it to a SystemVerilog module as a parameter, but SV does not have a type compatible with VHDL ...
0
votes
1
answer
85
views
glib iconv() - force conversion to single bytes
I have my own personal movie database system, within which context I NEVER want to see "extended" characters (with accents, umlauts, etc.) in any text fields.
MS Co-pilot tells me that i ...
3
votes
1
answer
131
views
Is `0x1F` an ASCII scan code, and if so, how is it repeatable?
I am writing a CLI text editor in c. I have to handle a lot of CTRL+key inputs. Right now, I am using a macro that gets the key you want to pair with CTRL, like this: #define CTRL(key) ((key) & ...
0
votes
1
answer
85
views
How can I get this IAS assembly code to work properly?
I'm doing this for a school assignment I've been given in Computer Architecture.
The topic is on the Von Neuman Machine (The IAS) and we were tasked to create a program that can do whatever we wanted.
...