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

Find control characters in MySQL

What is the best way to find control characters within a string in MySQL? I have a table and want to get all records, that contain control characters. Something like SELECT * FROM Customer WHERE Name = *ControlCharFilter*; in C# it would…
fubo
  • 44,811
  • 17
  • 103
  • 137
3
votes
1 answer

Erase multiple console lines with console characters

So I'm aware that with console characters you can return the cursor to the beginning of the current line (\r) or just a single character (\b) for overwriting. What I would like to know is I overwrite multiple lines with control characters. I have a…
3
votes
1 answer

Standard ML printing control characters

So I've stumbled on what seems to be a weird little problem. I want to print control characters, which should print that weird little box suggesting that I'm trying to print a non-printable character. When I try: print "\^C"; it works fine. However…
robins35
  • 653
  • 12
  • 37
3
votes
2 answers

Why is "\n" a number "NaN" in Javascript

In JavaScript on Chrome and Firefox: isNaN( "\n" ) gives false parseFloat ( "\n" ) gives NaN The same is yielded for \t, \r and \f.' \n is a number Parsed \n gives you Not A Number. Escaped characters such as the NULL byte \0, \\ and \" do work as…
Derk-Jan
  • 1,944
  • 16
  • 24
3
votes
2 answers

Are all non-printable characters control characters?

Does this (perldoc unicode) mean that all non-printable characters are control-characters? \p{Print} This matches any character that is graphical or blank, except controls.
sid_com
  • 24,137
  • 26
  • 96
  • 187
2
votes
1 answer

How can I get the final printed output of a text file that contains control characters?

I have the output of a program that uses control characters to animate a progress bar. The output is in a text file. I would like to somehow obtain the final printed output that results from running cat on the text file, and put that result into a…
Ryan C. Thompson
  • 40,856
  • 28
  • 97
  • 159
2
votes
1 answer

how to use SOH and ETX in xslt-1.0

how to set SOH and ETX by using xslt -1.0 I have tried numerous ways i dint reached output, since numeric code are not accepting this xslt-1.0 and here encoding is utf-8. how to use this hexadecimal code in it ...it was not working what do i need…
shannu
  • 187
  • 1
  • 2
  • 11
2
votes
6 answers

nmake - how to force echo command to output the tab character?

How to force echo command to output a tab character in MS nmake makefile? Verbatim tabs inserted right into a string after echo command are removed by nmake and don't show up in the output file. all : @echo I WANT TO OUTPUT THE CHARACTER…
Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
2
votes
0 answers

"fixing" RTL texts from logical to visual, before embedding in video as subtitles with ffmpeg

I'm searching for the correct way to pre-process my subtitles files before hard-coding them into video clips. Currently, ffmpeg does not process RTL (right-to-left) languges properly; I have detailed the problem…
Berry Tsakala
  • 15,313
  • 12
  • 57
  • 80
2
votes
1 answer

Is U+0085 NEXT LINE (NEL) deprecated?

There is few information about NEL. I think it was supposed to replace LF and CR LF, but it seems like it wasn't very used. Is it somehow deprecated and should applications interpret it as a new line?
D. Pardal
  • 6,173
  • 1
  • 17
  • 37
2
votes
1 answer

Why does `^M` appear in terminal output when looking at some files?

I'm trying to send file using curl to an endpoint and save the file to the machine. Sending curl from Linux and saving it on the machine works well, but doing the same curl from Windows is adding ^M character to every end of line. I'm printing the…
Sariel
  • 158
  • 1
  • 11
2
votes
0 answers

Why are form-feed and vertical tab treated differently inside of single-line comments?

In ISO/IEC 14882:2017 (C++17) is stated under Section 5.7, "Comments": 5.7 Comments[lex.comment] 1 The characters /* start a comment, which terminates with the characters */. These comments do not nest. The characters // start a comment, which…
2
votes
2 answers

Checking TextCompositionEventArgs.ControlText by Unicode encoding

I'm looking at a WPF example from a book where OnPreviewTextInput is overridden in a class derived from Window. The override checks the TextCompositionEventArgs.ControlText string against the Unicode literal character '\u000F'. This corresponds to…
B. Fuller
  • 157
  • 12
2
votes
1 answer

Control characters escaping in Erlang

What is the right way to escape control characters in Erlang? I do: [EscapedString] = io_lib:format("~p", [Str]). It works as I expect for \t and \n characters: io_lib:format("~p", ["str\ning"]). ["\"str\\ning\""] But for \a :…
2
votes
1 answer

XML Schema: exclude HTML entities and control characters from strings

Is there an XSD datatype that excludes HTML entities and other control characters from a string in an XML instance?
Michael
  • 95
  • 6