133 questions
-1
votes
3
answers
98
views
How does Linux (via SYS_WRITE) deal with the ASCII (control) codes from 0 to 31?
This recent assembly question got my attention, not for the obviously redundant instructions, but for what the sys_write outputs.
The program tries to output all 256 ASCII characters and does so ...
1
vote
0
answers
149
views
When I use Jupyterlab in google chrome to write code, It Raise "SyntaxError: invaild non-printable character U+00A0", but safari has not this problem
When I use Jupyter lab in chrome browser, it always autoadd special character in my code resulting a SyntaxError
SyntaxError: invalid non-printable character U+00A0
When I delete this special ...
0
votes
1
answer
75
views
Oracle XML Parse Error specific to non printable character
My XML Query goes like this.
SELECT X.CODE_VAL, X.CODE_DESC
FROM DATA_TBL A, XML_TBL B,
XMLTABLE('/XPATH/CHILDNODE1/CHILDNODE2' PASSING XMLTYPE(XML_TBL.XMLSTRING_TXT) COLUMNS
CODE_VAL VARCHAR2(100) ...
1
vote
1
answer
102
views
Python 3 process non-printable characters in a unicode string [duplicate]
I'm reading text that contains non-printable characters such as backspaces from a file example.log.
If I'm reading the content of the file in a terminal running cat example.log, I obtain a well ...
0
votes
2
answers
236
views
Is it safe to output a NULL char to std::cout?
Even though it is a very little problem, but every time when I need to print out some data in a loop, how to arrange the separating char always annoys me.
For example:
std::set<int> my_data { 1, ...
0
votes
1
answer
52
views
Non-Printable Character when creating directory with WSL
First time WSL user. When I run this bash script in WSL that creates a directory there is a non-printable character tacked on to the end.
It doesn't matter if I'm in /mnt/e /mnt/c or mnt/e/...
0
votes
0
answers
135
views
Remove non-printable characters from a converted string
I need to convert a unicode string represented by std::u16string to std::wstring and filter out nonprintable characters. The way I do this is as below. In our real project I use ranges for convenience,...
-1
votes
1
answer
146
views
String at specific address with non-printable ASCII values
I have an assignment that includes a bomb with different phases. I have a bomb.c and I will try to solve this assignment phases with assembly and gdb. I am trying to give the correct input string to ...
0
votes
4
answers
465
views
Python replace unprintable characters except linebreak
I am trying to write a function that replaces unprintable characters with space, that worked well but it is replacing linebreak \n with space too. I cannot figure out why.
Test code:
import re
def ...
1
vote
2
answers
2k
views
Tool to create and copy special and non-printable character string to Clipboard for testing
I'm looking for a tool (ideally online) that lets me specify a string with special and unprintable character codes (e.g. < Code 32), by code, and copy it to the Clipboard for testing.
There are ...
1
vote
1
answer
194
views
How would I change/remove 'non-printable' characters e.g  from df.columns values incorporating the regex statements already in place
Have tried the above with no success. Note ..This is specific to the text Column Headings and not the Column Values
df.columns = [x.lower().replace(" ","").replace("?",&...
1
vote
1
answer
877
views
Print non-printable character (VS Code)
I am writing a batch file in VS Code and I have a question. What are the ways to insert a non-printable character other than copying it from somewhere.
I have tried Alt+27, Alt+027, Alt+001b... but ...
-1
votes
1
answer
622
views
# in Material Description for some materials which is causing alignment issue in SAP ABAP [closed]
How to take out # from Material Description ? and anyone know why # exists in some materials.
0
votes
1
answer
40
views
txt file rendered perfectly from pdf, opens with perfect alignment in text editor, can not load into dataframe
I can not figure out how generic text processors like Geany or the new default gnome Text Editor parse my text files. The column alignment is perfect. Using cat -nA sees the correct delimiters, but ...
0
votes
1
answer
3k
views
How do I write a single backslash (\) in a string?
I am trying to detect non printable characters in a string ('\n', '\r', etc.) and insert a single backslash before them. So, for example if I have a string "Hello\nWorld", I want it to be &...
-1
votes
1
answer
768
views
Why does fgetc() in C always reads extra, non-existent characters whenever I try to read non-printable characters from txt files?
I am trying to read non-printable characters from a text file, print out the characters' ASCII code, and finally write these non-printable characters into an output file.
However, I have noticed that ...
1
vote
0
answers
567
views
How to display non printable characters (ASCII codes 0 - 32) in WPF
I want to display and edit serial data (e.g. NULL, STX, ETX, ENQ, etc. characters) in the text box in WPF. It should be displayed same like Notepad++ as shown here.
I have tried using textbox, ...
2
votes
1
answer
94
views
SSMS v18.8 replaces non-printing characters with blanks
It appears that the latest SQL Server SSMS v18.8 is replacing non-printing characters with blanks in the grid output. This was addressed for v2008 in this question, and it noted that it was fixed in ...
-1
votes
2
answers
668
views
Is there a way to get a symbol of a non-printable character?
I want to find a way to get a symbol of a non-printable character in c# (e.g. "SOH" for start of heading and "BS" for backspace). Any ideas?
Edit: I don't need to visualize a byte ...
0
votes
1
answer
587
views
Pandas read_csv - non-printable character (columns not recognized)
Could someone tell me what non-printable character I have in my code that makes python not recognize the columns names in my dataframe? :
import pandas as pd
data_olymp = pd.read_csv("...
0
votes
1
answer
40
views
RandomAccessFile writing non-printable characters/newlines when writing regular text to a file
I am trying to write to an existing file with RandomAccessFile, but the call to writer.writeUTF() overwrites the two characters before the write offset with non-printable characters or newlines. I ...
0
votes
2
answers
4k
views
Redshift: How to remove non-printable characters
I'm trying to remove non-printable characters from a string in Redshift and tried the TRANSLATE function but didn't return the results I'm looking for. Any advice?
0
votes
1
answer
189
views
How to replace THIS non printable character type in a docx that represents a \n but Word is not recognizing as a \n?
I am parsing various .docx documents but the part of my code that splits paragraphs when it encounters "\n" is adding a new line when it encounters this weird symbol (circled in yellow):
...
0
votes
0
answers
36
views
Powershell find non printing characters [duplicate]
I am attempting to validate a string to ensure it's a valid registry path, and having trouble with the non printing characters part. Given these three strings
$stringLiteral = 'line`nline'
$...
0
votes
0
answers
411
views
How do I insert a "non-printable" space in a string in SQL Server
How can I insert a non-printable single character space into a string? I need to make sure the following JOIN returns no result. If this JOIN returns a match, this would be false positive.
DECLARE @...
1
vote
1
answer
168
views
Spark reader splits records when encounters control characters
I am trying to read file using spark reader. Spark reader splits the records in the file when it encounters the control characters like ^M, ^H, ^O, ^P.
To debug the issue I am trying to manually ...
9
votes
2
answers
13k
views
How to show ascii non-printable characters in Visual Studio Code?
I'm using Visual Studio Code version 1.51.1 and am wondering if there is any way to display all of the ascii non-printable characters when looking at a file. I used to use Notepad++ and it had a ...
0
votes
0
answers
322
views
VBA can not identify Excel's cell content correctly (line break issue)
The cell's content has a line break in between two lines. Usually if I use
If rngCellContent = "Line1" & Chr(10) & "Line2" then varReturn = True
it returns True but I have ...
0
votes
0
answers
33
views
Python interactive mode custom prompt, Zsh & escaping non-printing characters [duplicate]
I'm using Zsh. I'd like to have a custom prompt in Python interactive mode.
Specifically, I'd like to add color.
If I do in Python something like
sys.ps1 = "\033[38;5;76m>>>\033[0m "...
1
vote
1
answer
1k
views
How to print 32 control characters in ascii in python?
ASCII characters are from 0 to 127 but only some numbers are printable characters. 32 of them are control characters and are not printable. Is there any way to assign any character to that hex values ...
1
vote
1
answer
152
views
Can someone explain me exactly what the below definition means in the C standard about directives
What i exactly need to know is what characters are allowed before the start of a directive as we all know we can have new line characters and whitespace characters before the start of a directive ...
1
vote
0
answers
173
views
Array of character with non-printable characters in Julia
I want to create an array of chars where some of the values are non-printable characters but not spaces:
I tried:
a = ['a', 'b', \n]
a = ['a', 'b', '']
a = ['a', 'b', nothing]
without success.
0
votes
3
answers
4k
views
How to remove non-printable characters from string?
I am reading a word file using below code :
import win32com.client as win32
word = win32.dynamic.Dispatch("Word.Application")
word.Visible = 0
doc = word.Documents.Open(SigLexiconFilePath)
I get ...
0
votes
1
answer
183
views
Non-printable characters in reading word file in Python
I am reading a table from a Word file. Below is my code to read the word file:
import win32com.client as win32
word = win32.Dispatch("Word.Application")
word.Visible = 0
word.Documents.Open(...
-3
votes
2
answers
919
views
Remove unwanted non-printable characters from large CSV files with millions of records -in Python 3 or 2.7
sample fileI receive large CSV files delimited with (comma or | or ^) with millions of records.
Some of the fields have non-printable character like CR|LF which translated as end of field. This is ...
0
votes
0
answers
68
views
How do I replace sub-strings including non-printable characters in python?
I need to automate the import a few large text files into my python script for some data wrangling and analysis. I need to remove/remedy specific instances of non-printable characters in order to stop ...
2
votes
1
answer
2k
views
cat a file's content, show non-printable chars as \xNN
is there any linux command line tool to cat any file's content which may be mixed with UTF-8 string and non-printable chars, but also show non-printable chars as \xNN?
such as abc\xa1defg,
PS: I ...
0
votes
1
answer
1k
views
How to get control characters from a console input string
I have looked through the suggested "already answered" questions for this. Mostly they want simply to discard such "non-printable" input. I want to use it.
I am getting a UTF8 String returned from ...
0
votes
1
answer
1k
views
Is there a font or (better!) set of unicode characters representing the numbers 0-255 for displaying ASCII character codes (or other uses)?
I have strings that are mostly standard alpha-numeric and other printable ASCII characters, and would like to display these in a console window on Windows. What I'm looking for is either a console ...
1
vote
1
answer
1k
views
Removing non-printable characters with sed not working
I am working on AIX unix and trying to remove non-printable characters from file the data looks like in Arizona w/ fiancÃÂÃÂÃÂ in file when I view in Notepad++ using UTF-8 encoding. When I try to ...
1
vote
1
answer
225
views
Why does Gitolite give 'invalid repo name' on clone?
I'm trying to clone a repo from my server running Gitolite, but it's giving me an error:
$ git clone ssh://[email protected]:1234/users/me/foo
Cloning into 'foo'...
FATAL: invalid repo name: 'users/...
7
votes
1
answer
6k
views
Search for non-printable characters (Carriage Return, Tab, etc.) in code editor of IntelliJ?
In the code editor of IntelliJ 2018, using either menu item:
Edit > Find > Find…
Edit > Find > Replace…
…how can I find invisible (non-printing) characters?
I am referring to characters such as:
...
2
votes
0
answers
1k
views
How to read / get notprintable character from handheld scanner
My goal is to get a code from a 2D barcode read with an Handheld Scanner and to decode it.
The code is compliant with GS1 128.
The structure of the code can include "group separator" to separate ...
-1
votes
1
answer
53
views
Textual output appears wrong and contains inexplicable symbols
When I run my code the output appears like an error. What can be done about this?
Here's the part of my code that does the printing:
if (dtw(Bs(:,4),AY) > 40) && (dtw(Bs(:,4),AY)< 68)
...
1
vote
0
answers
735
views
How to pass non-printable ASCII byte to STDIN file-descriptor in x86_64 assembler (yasm)
Problem
Suppose I have a program in x86_64 assembler yasm (see below) that requests input from a user via SYS_read system service at some moment. This output is treated as byte-number further in the ...
2
votes
1
answer
1k
views
Using a non-printable char (other then \0 \n \t) as fieldterminator argument in a bulk insert query
I cannot believe that this is not answered somewhere, but I have searched MSDN, Stack Exchange and Google. I'm beginning to suspect it is not possible the way I would want to do this.
Does anybody ...
1
vote
3
answers
4k
views
How to remove all non printable characters in a string and keep some?
I'm using this
$string = preg_replace('/[\x00-\x1F\x7F\xA0]/u', '', $string);
That regex is from this link PHP: How to remove all non printable characters in a string?
The regex is removing \n but ...
0
votes
0
answers
175
views
How to translate and remove non-printable characters? [duplicate]
I know there are a lot of ways to remove non-printable characters in Linux like sed or tr. But I want to remove them as cat command print. Here comes my example file which comes from telnet:
ae23 ...
5
votes
0
answers
2k
views
How to display Unicode control characters in a WPF TextBox?
My users do a lot of bi-directional text editing, it is not uncommon for them to sprinkle the text with some Left-to-right and/or Right-to-left marks. Sometimes they want to see where those marks are ...
2
votes
1
answer
1k
views
What are the special symbols in Parquet files?
I'm writing Parquet with Java API and syncing to HDFS.
When I get the Parquet file and read it with vi, I see many strange symbols like:
^U^B^U^@^U^H^U^H^\^X^H^A^@^@^@^@^@^@^@^X^H^A^@^@^@^@^@^@^@^V^...