|
I would be happy if it would not exist, but there are some rare Winform apps still running in this world. So imagine somebody typed in this crap by mistake and it will be stored to the database...
You are right, nobody needs that, but it exists.
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Bruno Sprecher wrote: You are right, nobody needs that, but it exists.
Ain't it the case for about 90% of things that exist ?
About the 0x1F, aren't the entry going some plausibility check before being put in the database ? It is not a valid xml char, so running the string through an xml validator would throw an error.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Rage wrote: It is not a valid xml char, so running the string through an xml validator would throw an error.
Agree. It is odd that the control allows this, but we should always do some kind of validation on any user input (users are stupid after all -- ) since we know users like to enter things that are forbidden.
|
|
|
|
|
Quote: but we should always do some kind of validation on any user input
I agree, but who is expecting something like this? Even DataGridView has same behaviour and who does validate really in that deep.
[Sorry for my strange English]
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
I agree with you that it is ridiculous that the textbox or datagridview text would accept these non-printable characters. Makes no sense to me.
|
|
|
|
|
And the story goes on, if you want to annoy colleagues:
a.) Windows Login Dialogue where one can enter username, you can also type an unvisible "Ctrl&_" on colleagues PC and check how long he Need to find out what's wrong.
b.) I also played a little bit with that in the Windows Registry, very unusual things can be produced by "Ctrl&_"
N.B:
- WPF seems to handle this better, what I tested until now.
- In Web Browser Front Ends "Ctrl&_" is usually Zoom and so no failure deteced until now.
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Just remembered that my sql server admin was attempting to set password in Sql Server mgmnt studio and even though he would set it to the value I sent him I could never log into sql server using my password. Finally found out he had some invisible char in there.
Very interesting. This is surely the same problem.
|
|
|
|
|
I liked this as a topic in lounge.
Interesting and I can tell you aren't just looking for an answer, but are talking about this in general as an topic that people might sound off on.
Upvote!
|
|
|
|
|
Thank you very much for your approval and your vote.
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Interesting behavior, thanks for sharing! Indeed, hidden characters are a b*tch! This is a great example of something a user might accidentally do.
Kind of related...the other day I needed to use the ¢ symbol in a description and had to lookup the old alt+0162 trick that I hadn't needed in years!
"Go forth into the source" - Neal Morse
|
|
|
|
|
Thank you for your nice comment.
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Oh hell yeah,
Steven Stills wrote a song about it ... back in the sixties:
"4 + 20"
|
|
|
|
|
Than you for the song
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Oh no, not French again!
"First of all: no German chauffeur on his passage to execution is joined by his old pointless alphabet." (8)
Life is too shor
|
|
|
|
|
First of all - a
German chauffeur on his passage to execution - Schumacher, obviously
pointless - sphere
is joined by his old - hisold
which gives aschumacherhisoldsphere. I ignored the "no" because it does not fit, and you have probably made a mistake in the letters count.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Your time will come, if you let it be right.
|
|
|
|
|
You are so close that I might declare you a winner!
Life is too shor
|
|
|
|
|
I think you will win this one as well!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I'm trying to think of a word, but I can't remember what it is.
Is it that?
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
Is the word amnesia?
One day I aspire to having a signature.
|
|
|
|
|
I try to remember how long ago it was that my memory was good.
Life is too shor
|
|
|
|
|
I can remember things fine.
I just don't know why I wanted to remember them...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I'm not sure if my memory is not as good as it used to be or if I've forgotten how bad it was?
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
|
|
|
|
|
My wife says she's leaving me because of my poor memory and my premature ejaculation.
I can't remember what came over her.
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
chriselst wrote: I can't remember what came over her.
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|