non-printing-characters Questions

11

Solved

I currently have the following code def removeControlCharacters(line): i = 0 for c in line: if (c < chr(32)): line = line[:i - 1] + line[i+1:] i += 1 return line This is just does not w...
Trojan asked 1/12, 2010 at 13:25

2

Solved

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 fe...
Woolgrower asked 1/12, 2020 at 18:58

6

Solved

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 fi...

18

Solved

This does not work: $jsonDecode = json_decode($jsonData, TRUE); However if I copy the string from $jsonData and put it inside the decode function manually it does work. This works: $jsonDecode = j...
Ihram asked 2/6, 2014 at 18:57

2

Solved

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 t...
Reparable asked 15/8, 2012 at 14:12

3

Solved

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 deali...
Landrum asked 22/7, 2012 at 8:30

4

Solved

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 tim...
Bon asked 22/12, 2015 at 9:44

4

Solved

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 ...

3

Solved

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....
Obliquity asked 13/5, 2013 at 19:53

1

Solved

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 suc...
Dilution asked 12/7, 2018 at 19:0

2

Solved

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 charact...
Tempt asked 20/3, 2013 at 10:19

3

Solved

I want to serialize the Arraylist of type ArrayList<Class> and the class contains two Arraylist of primitive type public class Keyword { private long id; private long wid; private String...

2

Solved

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/\x...
Teressaterete asked 20/12, 2011 at 6:39

2

Solved

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 ...
Haggard asked 1/4, 2011 at 15:6

4

Solved

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 spe...
Wellgroomed asked 11/5, 2010 at 16:0

2

Solved

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 = Chara...
Doukhobor asked 21/10, 2008 at 2:12
1

© 2022 - 2025 — McMap. All rights reserved.