- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
(Hint: Notepad is not a text editor; as the name suggests, it's a pad for your notes; also Wordpad is not a text editor).
Just three examples of real text-editors: Ultraedit; Programmer's file editor; Notepad++.
A google search for "Windows text editor" will come up with lots and lots of alternatives.
Admin
Admin
Oh, but that happens all the time today. You can trick such filters with percent-encoding, or other tricks. The solution is of course to actually test after it has been converted.
Probably not.Admin
Surely TRWTF is WCF.
Admin
There is a Chr() in VB.NET but there it does not exist in C# (also .NET).
In C#, char is a 2-byte integer that represents a UTF-16 Unicode codepoint.
To to use a hexadecimal escape sequence, you need to put the u:
"For whom the \u0007 tolls"
Or cast the codepoint to a char:
char myBel = (char)7 string myString = String.Format("For whom the {0} tolls", myBel);
Admin
Wait? They worked at Google?
Admin
Ack, I suddenly feel old for being around when you used BEL to get the attention of the Sysop (or for them to get your attention). (Post-physical bell, but we got the point).
Admin
Admin
Admin
ç is a good delimiter character, no one uses it. yes, my native language has that abortion of character, i cleanse all my text of it before serialization
Admin
No no no. Prefix (or postfix) the individual elements with a variable-length encoded integer. That way (1) you don't need to scan in order to parse and (2) no quoting is necessary. In-band signaling was a bad idea before phreakers figured out how to break it. Magic bytes aren't even quant or retro at this point, they're just broken. If you need a particular lexical order, then use 0x00 or 0xFF as delimiters and append multiple variable-length integers to the very end of your string, so you still don't need to quote magic bytes, or scan every byte in order to parse your data structure. This is faster and more robust than using delimiters.
Admin
Can't tell if serious or troll