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
4
votes
2 answers

How do I get rid of this unicode character?

Any idea how to get rid of this irritating character U+0092 from a bunch of text files? I've tried all the below but it doesn't work. It's called U+0092+control from the character map sed -i 's/\xc2\x92//' * sed -i 's/\u0092//' * sed -i 's///'…
alvas
  • 115,346
  • 109
  • 446
  • 738
3
votes
2 answers

Display non printable characters in html textarea

I have a textarea with content that displays like this: What I want it to show are the non printable characters, too, like white space and new lines (screenshot is taken as an example from libre office): Is this possible to display the non…
Markus
  • 5,667
  • 4
  • 48
  • 64
3
votes
1 answer

How can I create a file with a non-printing character in the name?

I am running into a situation where files are being uploaded to a server that have non-printing UTF-8 characters in the filename. I know how to fix the names, but I'd like to be able to create files for testing, and I'd also like to understand how…
thomij
  • 194
  • 2
  • 10
3
votes
1 answer

MySQL group_concat SEPARATOR char or ascii

Is there a way in MySQL to define a SEPARATOR in group_concat() with a non printable sign? Like ascii 3 or something like that? i tried group_concat(text SEPARATOR char(3)) and group_concat(text SEPARATOR 3) both of them doesn´t work. Maybe a way…
Denis
  • 439
  • 4
  • 17
3
votes
0 answers

What's the point of \[ and \] in the PS1 prompt?

According to man bash, in the PS1 environment variable (defining the shell prompt): \[ begin a sequence of non-printing characters, which could be used to embed a terminal control sequence into the prompt \] end a sequence of non-printing…
IpsRich
  • 797
  • 10
  • 23
3
votes
1 answer

How can I force angular.js to accept trailing whitespaces in bindings?

I want to bind an input to some other part of the page and replace all whitespaces the user has entered with some other characters, like asterisks for example. My (simplified) HTML code looks like this:
3
votes
2 answers

Ruby convert non-printable characters into numbers

I have a string with non-printable characters. What I am currently doing is replacing them with a tilde using: string.gsub!(/^[:print:]]/, "~") However, I would actually like to convert them to their integer value. I tried this, but it always…
Dan Grahn
  • 9,044
  • 4
  • 37
  • 74
2
votes
1 answer

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 v2012. Does anyone know of an option to restore…
Reeky
  • 23
  • 3
2
votes
2 answers

Removing non Printable values aftert Encoding.ASCII.GetString()

Suppose I have a Byte array and I use Encoding.ASCII.GetString() to convert the bytes into a string. Now the first few bytes will contain actual values, but the remaining ones will all have value of 0. After obtaining the string, when I show it on a…
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
2
votes
1 answer

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 don't need the two column output like xxd produces,…
osexp2000
  • 2,910
  • 30
  • 29
2
votes
2 answers

Trim function for non-printing characters

The Trim function only trims spaces. I need a function that trims all non-printing characters. My code... Private Sub CleanUpData() LastRow = Application.CountA(ActiveSheet.Range("A:A")) For CurrentRow = 2 To LastRow …
BoltBait
  • 11,361
  • 9
  • 58
  • 87
2
votes
1 answer

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 know a way to do this in a query (not using other…
2
votes
1 answer

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^@^@^@^@^A^@^@^@^@^@^@^@^U^@^U I'm wondering how…
ulysses
  • 123
  • 1
  • 12
2
votes
2 answers

How to “apply” backspace characters with perl

I have a file with multiple backspace characters (^H) in it. I'd like to be able to "apply" those backspaces within perl. I found a few solutions, but none of them worked in my case. The critical line is this one: test>>M^H…
derhelge
  • 93
  • 1
  • 8
2
votes
1 answer

Why can I define a PHP function with a non-printing character?

I have always been under the impression that all php functions had to begin with [a-zA-Z]. For instance, this would work: function a1() { return "Something, because I'm written properly."; } ... while this would not: function 1a() { return…
jerdiggity
  • 3,655
  • 1
  • 29
  • 41