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
676
votes
14 answers

Show whitespace characters in Visual Studio Code

Is it possible to show whitespace characters, like the space character, in Visual Studio Code? There doesn't appear to be an option for it in the settings.json (though it is an option in Atom.io), and I haven't been able to display whitespace…
65
votes
4 answers

Invisible Delimiter for Strings in HTML

I need a way to identify certain strings in HTML markup. I know what the strings are, but it is possible that they could be substrings of other strings in the document. To find them, I output a special delimiter character (currently using \032). On…
noah
  • 21,289
  • 17
  • 64
  • 88
36
votes
2 answers

printable char in java

Does anyone knows how to detect printable characters in java? After a while ( trial/error ) I get to this method: public boolean isPrintableChar( char c ) { Character.UnicodeBlock block = Character.UnicodeBlock.of( c ); return…
OscarRyz
  • 196,001
  • 113
  • 385
  • 569
23
votes
3 answers

How to replace non-printable unicode characters (Javascript)

I've already wasted a good amount of time dealing with strings (generated by some other source) and I found out that the problem was that the strings have non-printable characters. Today I am dealing with javascript. Does anyone know how to replace…
jmlopez
  • 4,853
  • 4
  • 40
  • 74
18
votes
6 answers

What is the "M- notation" and where is it documented?

The man page of cat says: -v, --show-nonprinting use ^ and M- notation, except for LFD and TAB What is the M- notation and where is it documented? Example: $cat log -A wrote 262144 bytes from file test.x in 9.853947s (25.979 KiB/s)^M$ ^M>…
eDeviser
  • 1,605
  • 2
  • 17
  • 44
13
votes
4 answers

Trying to remove non-printable characters (junk values) from a UNIX file

I am trying to remove non-printable character (for e.g. ^@) from records in my file. Since the volume to records is too big in the file using cat is not an option as the loop is taking too much time. I tried using sed -i 's/[^@a-zA-Z…
Pranav
  • 129
  • 1
  • 1
  • 8
12
votes
2 answers

Remove special characters from data frame

I have a matrix that contains the string "Energy per �m". Before the 'm' is a diamond shaped symbol with a question mark in it - I don't know what it is. I have tried to get rid of it by using this on the column of the matrix: a=gsub('Energy per…
Henk
  • 3,634
  • 5
  • 28
  • 54
10
votes
3 answers

How to remove non-printable/invisible characters in ruby?

Sometimes I have evil non-printable characters in the middle of a string. These strings are user input, so I must make my program receive it well instead of try to change the source of the problem. For example, they can have zero width no-break…
fotanus
  • 19,618
  • 13
  • 77
  • 111
9
votes
1 answer

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 feature you could turn on that would show every…
Gharbad The Weak
  • 1,541
  • 1
  • 17
  • 39
8
votes
3 answers

serialization ArrayList Java

I want to serialize the Arraylist of type ArrayList and the class contains two Arraylist of primitive type public class Keyword { private long id; private long wid; private String name; private ArrayList rank; …
Nixit Patel
  • 4,435
  • 5
  • 30
  • 57
7
votes
2 answers

How to match non-printable characters in a python regular expression?

How do you match non-printable characters in a python regular expression? In my case I have a string that has a combination of printable and non-printable characters. Example String: "Det 3 @ NYY 5 ?7" where the ? is either 0x7f or 0x80. In the…
user680696
7
votes
1 answer

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: CARRIAGE RETURN LINE FEED INFORMATION SEPARATOR…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
6
votes
4 answers

Is it possible to echo some non-printable characters in batch/cmd?

motivation I have a 3rd party, somehow long .bat file written for some specific function and would take considerable effort to re-write (which effort is also hindered by my problem). In for loops the most basic way to debug it would seem echoing…
n611x007
  • 8,952
  • 8
  • 59
  • 102
6
votes
2 answers

Remove non printable utf8 characters except controlchars from String

I've got a String containing text, control characters, digits, umlauts (german) and other utf8 characters. I want to strip all utf8 characters which are not "part of the language". Special characters like (non complete list) ":/\ßä,;\n \t" should…
friesoft
  • 155
  • 2
  • 2
  • 7
5
votes
0 answers

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 located in the text in order to move or delete…
Mikhail
  • 59
  • 1
  • 3
1
2 3 4 5 6