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

recognizing control characters

On my Linux box it shows up as ^A, CTRL-A when i vi the file. While writing a C program, how should i reference it? How can i find out a numeric value of it?
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
1
vote
2 answers

Decode unicode control characters in JSON string

Situation I'm importing huge JSON files into a database. It contains fields that were filled in by users using an online wysiwyg editor. This allowed them to also paste in special characters, typically copied from a MS Word document. Problem After…
Bram Verstraten
  • 1,414
  • 11
  • 24
1
vote
2 answers

jekyll build error: 'control characters not allowed' in JSON file

I've written a plugin which writes JSON output to a file in the _data directory: while current_page <= total_pages do url = 'https://web.consonance.app/api/v2/products.json' query = { 'page' => "#{current_page}", …
jbowman
  • 380
  • 3
  • 15
1
vote
1 answer

error defining array in a script, it works if typed out however

I'm trying to create an audio toggle. I've written it before but new OS and dll updates forced me to rewrite it, the method i used previously doesn't seem to work any longer. So right out of the gate my first line spits out this error: $audio : The…
acme64
  • 125
  • 4
1
vote
0 answers

ODI12C: Unable to Load Control Characters from XML File

My XML File contains invalid Characters. Can some one help me how to load those from XML in ODI12C? Error: ODI is throwing an error saying Invalid characters. The value from the XML file looks like this : LA CASUBADA FLINTRIDGE. But the original…
1
vote
0 answers

Hive Beeline outputs ^M and null char

I want to get the output from a Hive query running beeline. For some reasons, I get ^M and "null" char along with expected results. beeline -u jdbc:hive2://server:10000/default --showHeader=false --outputformat=csv2 --silent=true…
CLO
  • 103
  • 8
1
vote
1 answer

Unexpected behavior with a string stored in a variable in PowerShell

I'm getting some odd behavior from Excel's Cells.Find() method: Variable I'm searching on: PS > $volumename vol_01        PS > $volumename.GetType() IsPublic IsSerial Name BaseType …
Nicholas Elliott
  • 339
  • 1
  • 2
  • 11
1
vote
1 answer

Bash grep different outputs

I have a funny issue with grep. Basically, I am trying to match certain control characters in a file and get the count. grep -ocbUaE $"\x07\|\x08\|\x0B\|\x0C\|\x1A\|\x1B" Funny enough, in CLI it matches all control characters and returns…
Ionut
  • 11
  • 1
1
vote
0 answers

How to output the string with control character escape sequences

How to output the string with character escape sequences (e.g. in the Console)? The goal is to display the "hidden" control characters from a string. Example: For the string "first line second line with a tab... and more line breaks Next line" you…
Alexander Zwitbaum
  • 4,776
  • 4
  • 48
  • 55
1
vote
3 answers

Printing a particular hexadecimal value in character representation

When trying to use '\x05' in a string, the compiled C code seems to behave oddly when handling the value. For instance when using the following string: char *weird = "\x04\x68\x65\x79\x79\x03\x6e\x65\x74\x05\x6c\x6f\x63\x61\x6c\x00"; When printing…
reyyez
  • 365
  • 2
  • 3
  • 16
1
vote
1 answer

How do I draw Control Characters in a QTextEdit?

Is there a way to draw control characters with or in a QTextEdit, similar to the way Sublime Text 3 and Notepad++ do. Example Control Character Display I am not sure if they are using a font that has these control characters in them or if they are…
Fallrisk
  • 11
  • 2
1
vote
1 answer

how to add escape sequence for BELL (U+0007)() control character in java

I am facing the parsing issue with some control characters. I have a string which contains a UNICODE control character. We are using a json parser from "mongodb"(mongo-java-driver) library to parse the given string. It is throwing…
1
vote
1 answer

Go: What's the best way to detect invalid JSON string characters?

What's the best, most efficient way to detect whether a Go string contains characters that are invalid in JSON strings? In other words, what's the Go equivalent to this answer to this Java question? Is it just to use strings.ContainsAny (assuming…
theory
  • 9,178
  • 10
  • 59
  • 129
1
vote
1 answer

How to show non-printable characters in SWT a text widget

How is it possible to display non-printable characters in an SWT StyledText widget in a way it's done by Swing with an empty square? To replace all occurrences with a symbol via regex in the source string can't be the solution because copy & paste…
NormanC
  • 41
  • 3
1
vote
1 answer

Windows service control characters

I created a Windows service and would like to send it a control+B or control+C control value. I know I can use sc control, but I was wondering if there was a location that contained all possible values I can send. There is a sc stop method, but I'm…
Steve
  • 1,145
  • 1
  • 11
  • 25