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
0
votes
0 answers

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 @table1 TABLE (Title VARCHAR(20)) INSERT INTO…
SusanD
  • 143
  • 9
0
votes
0 answers

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 one case where it returns False. I pasted the "faulty content" into…
Albin
  • 1,000
  • 1
  • 11
  • 33
0
votes
0 answers

Python interactive mode custom prompt, Zsh & escaping non-printing characters

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 " then the prompt displays correctly, but the terminal seems to be…
Orius
  • 1,093
  • 5
  • 11
0
votes
3 answers

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 strings from the file which has lot of non-printable…
Anudocs
  • 686
  • 1
  • 13
  • 54
0
votes
1 answer

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(SigLexiconFilePath) doc = word.ActiveDocument …
Anudocs
  • 686
  • 1
  • 13
  • 54
0
votes
0 answers

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 pandas read_csv() splitting strings into new…
0
votes
1 answer

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 keyboard input using BufferedReader br = new…
mike rodent
  • 14,126
  • 11
  • 103
  • 157
0
votes
1 answer

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 font or a unicode set of characters that represent…
tastewar
  • 85
  • 4
0
votes
0 answers

How to translate and remove non-printable characters?

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 Enabled Down Disabled Auto Auto…
vinllen
  • 1,369
  • 2
  • 18
  • 36
0
votes
0 answers

Windows context menu command prompt with non-printable characters

Ok, so I have been messing around with encryption/decryption in java and the encryption I have created uses non-printable/special characters. I then have made an entry in the Registry so that I have the options to Encrypt or Decrypt files in the…
0
votes
1 answer

How to remove characters with a specific ASCII value using a text editor?

How can I remove all characters that have a specific decimal ASCII value? Can Notepad++ do that? Otherwise, is there another software I can use? Thank you
Ale
  • 285
  • 2
  • 7
  • 18
0
votes
2 answers

Why carriage return hide the precede character?

Why carriage return hide the preceded character "l" in my below code. System.out.println("\tHello \tWor\nl\rd"); Here is the output: Hello Wor d
sandy Roy
  • 5
  • 1
  • 6
0
votes
1 answer

Non Printable characters of UTF-8 - SUSE Linux Java doesn't support

We are implementing a feature to support non printable characters of UTF-8in our Database. Our system stores them in the database and retrieves them. We collect input in the form of base 64, convert them into byte array and store it in database.…
javaShilp
  • 59
  • 1
  • 6
0
votes
3 answers

Remove non printable string

I've done an OCR on a pdf image and extracted the text. The OCR for some reason has converted a single space to a double carriage return line feed. eg. "\r\n\r\n" The following doesn't work as I think my 4 characters are not really a stirng but 4…
ErickTreetops
  • 3,189
  • 4
  • 27
  • 37
0
votes
0 answers

Remove non printable characters but keep accents (PHP 5.5 to 5.6 issue)

I want to remove non printable characters and keep french accents like "é". I'm able to do this in PHP 5.5 but not on PHP 5.6. On PHP 5.5 : $original = preg_replace('/[\x00-\x1F\x80-\x9F]/u', '', $original); This works perfectly. But since my…