Questions tagged [non-printing-characters]

A character code that does not represent a written symbol, and is usually a printing or telecommunication control character

See the Control character Wikipedia article for more info.

90 questions
2
votes
2 answers

GREP_OPTIONS='--color=always' causes non-printing characters

My bash version: GNU bash, version 3.2.49(22)-release (i686-pc-cygwin) Copyright (C) 2007 Free Software Foundation, Inc. In my .bashrc, I have: export GREP_OPTIONS='--color=always' To reproduce the problem, create a file test.txt and write some…
Ke Li
  • 157
  • 4
  • 9
1
vote
1 answer

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("?","").replace("_","").replace( "Â" , "") for x in df.columns] Would have replaced…
Peter R
  • 11
  • 3
1
vote
1 answer

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 removing the control characters the file and testing…
Learner
  • 21
  • 5
1
vote
1 answer

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 of 32 character? so that i can print all the 127…
1
vote
1 answer

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 before ( # ) now i read the C standard about this and…
1
vote
0 answers

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.
sbac
  • 1,897
  • 1
  • 18
  • 31
1
vote
1 answer

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 view file in unix she I get ^▒▒^▒▒^▒▒^▒▒^▒▒^▒▒ I…
Auguster
  • 377
  • 1
  • 5
  • 16
1
vote
1 answer

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://git@git.example.com:1234/users/me/foo Cloning into 'foo'... FATAL: invalid repo name: 'users/me/foo' fatal: Could not read from remote…
Scott Weldon
  • 9,673
  • 6
  • 48
  • 67
1
vote
0 answers

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 parts of the code. I need to read this group separator…
Flint75
  • 11
  • 3
1
vote
0 answers

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 program. User easely could provide all numbers…
LRDPRDX
  • 631
  • 1
  • 11
  • 23
1
vote
3 answers

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 I would like to keep it. What should I do? I think…
1
vote
2 answers

neutralize non-visible ASCII characters for printing ASCII table

I'm trying to write a short script (for a tutorial) to show which of the first 128 ASCII characters are printable, recognizable characters. The following script using `is in string.printable' partially works, but is still triggering off of things…
uhoh
  • 3,713
  • 6
  • 42
  • 95
1
vote
1 answer

ASP.NET Pass non-printable barcode character from a web.form to server side

I've been developing a web app that accepts input from a barcode scanner. I need to pass scanned barcodes (GS1-128) from client-side to server-side. By standard, GS1-128 may contain one or several group separator characters (characters with…
1
vote
1 answer

In Java I need to convert an XML Document to a string, with non-printable characters in data as hex

I have a method that takes a Document and produces an XML String value. It works fine, except that spaces, tabs, and other characters like that are preserved as-is in the node values. I need them converted to their hex equivalents. Here's the…
Brad Y.
  • 161
  • 2
  • 14
1
vote
0 answers

Textpad shows non-printable charater(hex 02) in different way going from windows 7 to windows 10

With the same version of TextPad the look is different. It would be very convinient with the same display of the hex "02" character in windows 10. I would like to know why this is changed, and even better how to get the same look in windows 10 as in…
HON
  • 11
  • 1