Escape-character issue...

May 24, 2010
855
0
Northlake, Il
I<works><works^><works^><works^^><works><works><works><doesn't work^=""> know this is inconvenient, but I can not get this web site to accept caret, less than, or greater than symbols in the posting itself so the question is in the attached text file...

</doesn't></works></works></works></works^^></works^></works^></works>
 

Attachments

  • CaretProblem.txt
    691 bytes · Views: 76

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I<WORKS><WORKS^><WORKS^><WORKS^^><WORKS><WORKS><WORKS><DOESN'T work^=""> know this is inconvenient, but I can not get this web site to accept caret, less than, or greater than symbols in the posting itself so the question is in the attached text file...

</DOESN'T></WORKS></WORKS></WORKS></WORKS^^></WORKS^></WORKS^></WORKS>

You need to double your escape characters. The function is getting expanded twice, once during variable expansion and once in ECHO.

Or, you could use SETDOS to disable redirection.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
---- Original Message ----
From: mathewsdw
To: ESFabian@zenge.org
Sent: Tuesday, 2011. March 29. 23:54
Subject: [Support-t-2734] Escape-character issue...

| I know this is inconvenient, but I can not get this web site to
| accept caret, less than, or greater than symbols in the posting
| itself so the question is in the attached text file...

For some reason no attachment information was included in the emailed version of this post. Based on Rex' reply I presume the issue is related to using special characters, such as greater than ">" or less than "<" characters in your data. Did you look into Charles Dye's SAFECHARS.DLL? For most purposes it solves the problem!
--
HTH, Steve
 
Jan 19, 2011
604
14
Norman, OK
Solution to your posting problem, not your original problem.

HTML:
I<works><works^><works^><works^^><works><works><works><doesn't work^=""> know this is inconvenient, but I can not get this web site to accept caret, less than, or greater than symbols in the posting itself so the question is in the attached text file...

</doesn't></works></works></works></works^^></works^></works^></works>

The easy way...
When you have issues with the < and > symbols in the forums, wrap your message in the
HTML:
tags. When you use the < and > symbols directly surrounding some text (no space between), the forum software thinks you are trying to embed HTML code and strips it out. Adding the
HTML:
 tags around the code will tell the forum "I want to show everything I'm typing; I'm not trying to be sneaky."

The hard way...
Replace your special characters with their corresponding HTML character entities. For instance...
< &nbsp;&nbsp;&nbsp; &amp;lt;
> &nbsp;&nbsp;&nbsp; &amp;gt;
& &nbsp;&nbsp;&nbsp; &amp;amp;

Here's a cheat sheet... "http://blog.acodingfool.com/cheatsheets/html-character-entities-cheatsheet/"
 
May 20, 2008
3,515
4
Elkridge, MD, USA
In response to the OP's issue:

When you deal with fixed text, using the TEXT / ENDTEXT commands allows you to include absolutely any character. It is the simplest way to display special characters which would otherwise have syntactical meaning to TCC.

In response to the problem of POSTING including characters that have special meaning in HTML: my earlier post in this thread was made by the email portal, and I did nothing special to get special characters posted...
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Wed, 30 Mar 2011 11:23:42 -0400, Steve Fabian <> wrote:

|In response to the OP's issue:
|
|When you deal with fixed text, using the TEXT / ENDTEXT commands allows you to include absolutely any character. It is the simplest way to display special characters which would otherwise have syntactical meaning to TCC.
|
|In response to the problem of POSTING including characters that have special meaning in HTML: my earlier post in this thread was made by the email portal, and I did nothing special to get special characters posted...

When I'm posting from Agent, I manually surround sensitive stuff with
Code:
 and
. That seems to work OK.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Wed, 30 Mar 2011 11:56:42 -0400, vefatica <> wrote:

|On Wed, 30 Mar 2011 11:23:42 -0400, Steve Fabian <> wrote:
|
||In response to the OP's issue:
||
||When you deal with fixed text, using the TEXT / ENDTEXT commands allows you to include absolutely any character. It is the simplest way to display special characters which would otherwise have syntactical meaning to TCC.
||
||In response to the problem of POSTING including characters that have special meaning in HTML: my earlier post in this thread was made by the email portal, and I did nothing special to get special characters posted...
|
|When I'm posting from Agent, I manually surround sensitive stuff with
|Code:
|---------
| and
|---------
|. That seems to work OK.

See how well it works! :-)

That is, I surround it with

left-bracket "CODE" right-bracket

and

left-bracket forward-slash "CODE" right-bracket.
 
Jan 19, 2011
604
14
Norman, OK
I did nothing special to get special characters posted...
Correct, however your < and > characters were not surrounding text without intervening spaces, e.g. "&lt;text&gt;" (I hardcoded this as "&amp;lt;text&amp;gt;"). Your text was as follows.
I presume the issue is related to using special characters, such as greater than ">" or less than "<" characters in your data.
With the < and > characters separated, the forum parser does not consider it to be HTML code and allows it to pass.
When I'm posting from Agent, I manually surround sensitive stuff with
Code:
 and
. That seems to work OK.
It works beautifully, however there are issues using
Code:
 vs. [HTML]. Compare the following two posts of the same screen paying particular attention to the directories.
[code]
[C:\test]dir

 Volume in drive C is unlabeled      Serial number is 58b8:a853
 Directory of  C:\test\*

 3/30/2011  12:20         <DIR>    .
 3/30/2011  12:20         <DIR>    ..
 3/30/2011  12:20         <DIR>    directory1
 3/30/2011  12:20         <DIR>    directory2
 3/30/2011  12:20         <DIR>    directory3
 3/30/2011  12:20              13  file1
 3/30/2011  12:20              13  file2
 3/30/2011  12:20              13  file3
                39 bytes in 3 files and 5 dirs    12,288 bytes allocated
    42,395,115,520 bytes free

[C:\test]
HTML:
[C:\test]dir

 Volume in drive C is unlabeled      Serial number is 58b8:a853
 Directory of  C:\test\*

 3/30/2011  12:20         <DIR>    .
 3/30/2011  12:20         <DIR>    ..
 3/30/2011  12:20         <DIR>    directory1
 3/30/2011  12:20         <DIR>    directory2
 3/30/2011  12:20         <DIR>    directory3
 3/30/2011  12:20              13  file1
 3/30/2011  12:20              13  file2
 3/30/2011  12:20              13  file3
                39 bytes in 3 files and 5 dirs    12,288 bytes allocated
    42,395,115,520 bytes free

[C:\test]
Hope this helps.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica ECHOERR and color escape sequences Support 4
P Escape key no longer clears command line in v24 Support 21
D Regexes and escape characters Support 5
D Can ANSI escape sequences be used in keystroke aliases? Support 8
jbanaszczyk How to escape? Support 2
tmaynard How to? Control-U alias for Escape (command line editing) Support 5
A Escape characters on right side of pipe Support 0
H Escape key no longer closes Help Support 3
vefatica Escape sequences and DO? Support 13
vefatica WAD TCC: inconsistent character handling Support 11
vefatica @INT with comma as decimal character Support 2
vefatica What's this character? Support 12
rps Regex problem: \xnn not recognized as a hex character Support 0
old coot Regex problem: \xnn not recognized as a hex character Support 12
L How to? Character transfer among @BALLOC buffers, command tails, and possibly redirected standard streams Support 11
D How to? Filenames with "&" character Support 3
samintz WAD Copy/append adds a character Support 3
B Fixed FFIND doesn't find last character in file without CR/LF at EOF Support 1
M I'm unable to use @replace[] with a % character in string2 Support 12
Exolon V17 beta, debugger: STRG-S is inserting character instead of saving Support 12
J Passing % character through command line to .btm Support 5
M Fixed character set in dir/copy Support 3
dcantor Fixed Ctrl+Shift+Insert repeats last character Support 3
D Copy to clip changes character Support 24
S Fixed Build 48 - Non-ASCII Character mishandling Support 3
W Ascii character output Support 12
nickles Literal tab character Support 21
R One character alias prevents completion? Support 8
S Forum character encoding Support 2
vefatica @SUBST ... how replace character with a caret? Support 9
M Programmatically getting the console width in character Support 18
J How to pass a character like " " to a function Support 3
Jay Sage Dealing With Filenames Containing Slash Character Support 5
B A swedish character sent through keystack gets converted Support 4
nikbackm Alias expansion and switch character Support 2
G v28 Display Issue Support 7
Jay Sage Issue with CD_ENTER Alias Support 37
Jay Sage Issue with CD_LEAVE Alias Support 3
fpefpe How to? issue with % and evaluation Support 5
cgunhouse Standard User Account Issue Support 2
samintz WAD Display wrapping issue Support 5
M TCC color issue in ConEmu Support 4
samintz Timer issue Support 4
Alpengreis Documentation Minor issue in help file for view /E Support 1
samintz WAD ANSI issue Support 3
D TCSTART issue after reinstallation Support 14
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
Y TCC and Cmder imcompatibility issue Support 7
M Another possibly strange remote registry issue Support 5

Similar threads