ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problems with [pre] or [code]

February 05, 2008 2:14pm

Subscribe [1]
  • #1 / Feb 05, 2008 2:14pm

    nerdcentric

    2 posts

    I am trying to post some sample scripts (windows) on my Wiki, but running into problems with precents (%) in Wiki {pre} and {code} (changed to curly brackets to avoid formatting in this message). 

    For instance if I try to post:

    for /f "tokens=2,3,4 delims=/- " %%x in ("% date%") do set d=%%x%%y%%z

    I end up with (notice the change to date):

    for /f "tokens=2,3,4 delims=/- " %%x in ("Úte%") do set d=%%x%%y%%z

    I have tried using {pre} and {code} on the Wiki page and end up with the same problem in each.  Any ideas?

    Update: Just ran into a different problem using code in the example above.  If I use a %d it switches it to a ASCII square.  So I had to add a sapce in the example above.

  • #2 / Feb 05, 2008 2:57pm

    Lisa Wess

    20502 posts

    While the usage is different, the underlying issue is the same, so check out this thread for an explanation. =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases