Questions tagged [non-printable]

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.

33 questions
2
votes
2 answers

UTF-8 PHP replace non printable character "space" with non printable character "line break"

I have a string in UTF-8 with non-printable space which I need to replace with non-printable linebreak something like this str_replace(' ','
',$string); but with non-printable characters.
JTC
  • 3,344
  • 3
  • 28
  • 46
2
votes
1 answer

Exporting TextField in Django - Python model to PDF using ReportLab - line break becomes unprintable characters

I have a model attribute that saves user's HTML Textarea input. Because when the user hit enter in the Textarea, the form submitted, I have written a small Javascript code to input the "\n" automatically, rendering line break. When I try to export…
Au Vo
  • 21
  • 1
2
votes
2 answers

Avoid non printable character in html file written by Python

I'm trying to convert SPSS syntax files to readable HTML. It's working almost perfectly except that a (single) non printable character is inserted into the HTML file. It doesn't seem to have an ASCII code and looks like a tiny dot. And it's causing…
RubenGeert
  • 2,902
  • 6
  • 32
  • 50
2
votes
2 answers

Remove ALL or particular Non printable character from column in mysql

I want to remove all OR particular non printable character from my column in mysql. I think this can be achieve using regexp_replace() function but how that I dont know. Non Printable characters has Ascii value from o to 31. I had Think one…
Ronak Shah
  • 1,539
  • 2
  • 13
  • 20
1
vote
1 answer

How do I display non printable chars in rich edit?

is there a way how to display any of the non-printable characters in TRichEdit control ? Or at least paragraph at the end of each line ? I've made a quick preview to the rich edit messages but can't see anything specific for this purpose. I'm just…
user532231
1
vote
1 answer

Characters that are not visible when printed

I was using an ascii code table the other day and noticed that some "unprintable" characters exist. These characters include "Null", "Start of Header", and others like them. I tested these characters myself by attempting to print "Null" to the…
Liv
  • 57
  • 7
1
vote
1 answer

linux command to move part of string with non-printable character

I have binary log file with such similar lines which splitted by non-printable char "^A". I see this symbol backlit white when I open file with command "less" blah9234^Azzz123^A1=123 blah6344^Azzz123^A1=456 blah4555^Azzz123^A1=78912 I need convert…
Trav Erse
  • 191
  • 2
  • 3
  • 12
1
vote
0 answers

Hex2ascii dictionary module for non printable chars

I want to convert hexadecimal chars like: \x12h+.\xC9V\xB8\xFC\x95\x0D\x11 to (Device Control 2)h+.(+)V(+)(n)(ò)(Carriage Return)(Device Control 1) Is there a module available in python or something similar that can easily do this without having…
SomeGuyOnAComputer
  • 5,414
  • 6
  • 40
  • 72
1
vote
2 answers

Locate files which ONLY contain printable characters in bash script

I'm trying to write a bash script that looks at a directory full of files and categorises them as either plaintext or binary. A file is plaintext if it ONLY contains plaintext characters, otherwise it is binary. So far I have tried the following…
RikSaunderson
  • 3,505
  • 6
  • 32
  • 50
0
votes
2 answers

How to stop users from copying or printing text from my web page?

I have a web page (on .Net platform, with C#) with text content and I would like to block users from copying the text or printing the document. If the user is hard out on attaining a copy of the page, I know he can. But I would like to make it as…
Null Head
  • 2,877
  • 13
  • 61
  • 83
0
votes
1 answer

Perl: Syntax Error; Non-Printable Chars for Key. Error Executing CMD find

I'm trying to pass a scalar value to the system command but keep having trouble. I'm unsure as to why. Any help would be appreciated at this late hour. The two errors that I'm getting are: Syntax Error; Non-Printable Chars for Key. Error…
0
votes
2 answers

2 different output from an input file iterated from mmap and read with a chunk in C

I want to read a file which has some characters in it and check the percentage of printable characters as well as the percentage of white spaces. This is my Python code which generates the input file: import string import random array = list() array…
EmadSmart
  • 81
  • 1
  • 13
0
votes
1 answer

Non-printable characters in file names break my recursive file listing VB Script

I created a VB script to recursively list all of its file and subfolder files. The script begins fine but eventually crashes in any folder containing a file with a non-printable character/s in their filenames, i.e. I see little squares when I browse…
0
votes
1 answer

Outlook VBA -- Trimming non-printable characters

I am having a real struggle trying to get a string tied down to just what I need in Outlook VBA. I have tried 100 different things from all over the internet, including here. I use the following: CString = LTrim$(RTrim$(Mid(itm.Body, InStr(1,…
JMP
  • 97
  • 1
  • 2
  • 11
0
votes
2 answers

Input string with non printable chars

In a Linux console when a C program asks for a string (i.e. username) how can I insert non-printable chars? I search something better then printf '\x48\x83\xc4\x50\x48\xbf\x3d...etc' | ./myProgram.bin or ./myProgram.bin < dataFile I prefer to type…
Antonio Rizzo
  • 748
  • 1
  • 8
  • 17