Special characters in filenames for File System Object

Author Message
cleantomic

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 12/23/2010
  • Status: offline
Special characters in filenames for File System Object Thursday, December 23, 2010 8:42 AM (permalink)
0
When I try to retieve a file with a special character in it's file name the following code returns it cannot find the file. my script works fine with file names without special characters.
 
set f=fs.GetFile(server.mappath("../xml/" & Request.QueryString("cn") & ".xml"))
 
How can I resolve this issue?
 
#1
    webber123456

    • Total Posts : 58
    • Scores: 0
    • Reward points : 0
    • Joined: 9/20/2007
    • Status: offline
    Re:Special characters in filenames for File System Object Friday, January 28, 2011 7:09 PM (permalink)
    0
    if the querystring is encoded you will have to decode it
     
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9