Questions tagged [control-characters]

Control characters are non-printing characters used to send signals to the output terminal.

Control characters are generally non-printing characters that are used to send signals to the output terminal.

More information is available on Wikipedia.

218 questions
1
vote
0 answers

PHP: Parsed PDF-File full of Control-Characters

I've got a problem parsing this pdf-file: http://www.transperfect.com/sites/default/files/imported/pdf/Tokyo_Client_Services_Representative.pdf After I encoded the FlateDecode decoded pdf-file the output is something like this: Usually it's easy to…
1
vote
3 answers

How to remove unnecessary characters from this kind of string?

[1mResolving domain yahoo.com ,[0m ,98.138.253.109 yahoo.com I want to remove "[1m" and "[0m". I tried encoding using encode('utf-8') didn't worked. Please help.
Shreejibawa
  • 1,860
  • 1
  • 25
  • 35
1
vote
2 answers

detecting end of tty output

Hi I'm writing a psudo-terminal that can live in a tty and spawn a second tty which is filters input and output from I'm writing it in python for now, spawning the second tty and reading and writing is easy but when I read, the read does not end, it…
Fire Crow
  • 7,499
  • 4
  • 36
  • 35
1
vote
2 answers

Can Apache Wink ignore unprintable xml characters?

My application supports REST API using Wink and a JAXB provider built in to the JDK (1.6). Sometimes I receive PUT requests that contain control characters. As far as my application is concerned, the control characters constitute a valid and…
Vitaliy
  • 8,044
  • 7
  • 38
  • 66
1
vote
3 answers

Can I put control characters in XML via XSLT?

I have the following problem: I have an XML and an XSLT file to process this it and generate output. The output of this process should contain a control character '0B'. And as far as I know, XML doesn't embed control characters, so how can I…
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
1
vote
1 answer

Hector does not handle Control Characters correctly in Java Strings - how to get Hexadecimal from Hector instead of text string?

I have a problem with Hector's handling of control-characters in Key and Column names. I am writing a program using Hector to talk with a Cassandra instance, and there are pre-existing Keys and Column names with e.g. hexadecimal…
Duke
  • 11
  • 1
0
votes
1 answer

What's the difference between \r\n and \n

In Terminal it seems like no difference between the two echo -en 'first\r\nsecond' and echo -en 'first\n\second' but in the code without \r it doesn't work echo -en 'GET /test HTTP/1.1\r\nHost: localhost\r\n\r\n' | nc localhost 9292 works,…
mko
  • 21,334
  • 49
  • 130
  • 191
0
votes
1 answer

C - Input testing for ctrl + character

Was wondering how you would be able to test the input that is saved in an char array like... char input[INPUT_SIZE]; And using fgets(input,INPUT_SIZE,stdin); To get the input from the user but was wondering how i could use a if statement to…
Lemex
  • 3,772
  • 14
  • 53
  • 87
0
votes
0 answers

Same echo command which has control characters showing different output

If I run echo -en "aap\0icon\x1f${icon}\n" like: #!/usr/bin/env bash array="Alacritty vscodium firefox-esr io.github.cboxdoerfer.FSearch folder" for icon in ${array}; do echo -en "aap\0icon\x1f${icon}\n" echo -en "aap\0icon\x1f${icon}\n" |…
Ahmad Ismail
  • 11,636
  • 6
  • 52
  • 87
0
votes
0 answers

Need to connect header file to data file by reading some control chars

I am trying to read data from a legacy system. I have a .dat file with no header and that contains data with no specific delimiter like comma or tab. It has a width/length base elimination system. Another file with an extension .fid contains header…
0
votes
0 answers

Invalid characters - best practice

Invalid characters keeps comming and biting me in the ***. For example the character "Vertical tab" " ". (but this is just a new line, so it is ancient technical characters, which is not something most text fields are even desiring) Or any other…
Richard
  • 1
  • 1
0
votes
2 answers

Does C# have built-in methods to convert string control characters to "normal characters"?

There is a Char.IsControl() method to identify such characters, but I want a way to convert them to "normal" characters. i.e. some way to visualise a string that contains such characters. Probably similar to what Notepad++ does. Obviously such a…
Brondahl
  • 7,402
  • 5
  • 45
  • 74
0
votes
1 answer

Is there a Qt function to (un-)escape (at least) the ASCII formatting characters (d 0..31) in a QString?

I don't like reinventing the wheel and this seemed like a pretty basic function. The same concept as these two questions except specifically for QStrings? QRegExp has an escape function so I'm wondering if I've just overlooked the QString version…
Samuel Harmer
  • 4,264
  • 5
  • 33
  • 67
0
votes
1 answer

Is there a "end of heading" or "beginning of transmission" character in Unicode?

Unicode has characters for START OF HEADING (␁ U+0001), START OF TEXT (␂ U+0002), END OF TEXT (␃ U+0003), and END OF TRANSMISSION (␄ U+0004). What's confusing about this is that, while there is a START OF HEADING character, there is no END OF…
Ben Zelnick
  • 433
  • 4
  • 14
0
votes
2 answers

Arrow keys turn into control characters in Telnet

I'm in an Ubuntu terminal, and telnet to a server. Now whenever I type 'up', it turns into ^[[A. Other arrow keys also turn into control characters. Is there a way I can run telnet so it understands my arrow keys? This would be a huge help because…
foobar
  • 10,854
  • 18
  • 58
  • 66