Solved

MAC %20 Problem

Posted on 1998-04-15
6
304 Views
Last Modified: 2013-12-27
This is a web based application.  The application is for a company who receives uploaded documents from clients, via http from Netscape or Internet Explorer.  The uploaded document is uploaded and the document name is placed in the Database.  When the client Operating System is a Macintosh the following occurs:  If there are spaces in the filename the spaces are then changed into %20 so:
FileName:  Hello There
Changed to:  Hello%20There
i need to know what the problem is and how to fix it.
0
Comment
Question by:Achilles25
6 Comments
 
LVL 2

Expert Comment

by:ipierce
ID: 1542549
well that's certainly something you see a lot on the web.  the %20 refers to ASCII character number 20, which is a space.   Other nonstandard characters (i.e. not seen in URLs) like ! get a %22 or something like that.  Not that I know the fix, but maybe this will help.

also, please clarify a bit what is happening:  the mac client is uploading a file thru netscape or IE, on the mac it's called "hello there" but when it gets to the other end you see "hello%20there" as the file that just got uploaded to the server?  Is that accutare?
0
 
LVL 2

Expert Comment

by:squint
ID: 1542550
The solution is to run the file name through a "URL decode/escape" function.  You just need to account for this on the server application.  On Windows, all spaces in file names are internally translated to the "+" character, when the file is selected.  On the Mac, the spaces are translated to "%20".  All character are translated *again* when the form is submitted; the "+" character does not get escaped, but "%20" becomes "%2520" (25 is the hex code for the '%' character)!  This probrably should be classified as a bug.

An alternative is to write a JavaScript routine to obtain and encode the file name in the same manner across OS's.
0
 
LVL 6

Accepted Solution

by:
TheHub earned 200 total points
ID: 1542551
the problem is minor. tell the user...thats just the way it is.
0
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

 
LVL 6

Expert Comment

by:TheHub
ID: 1542552
the problem occurs most often when the file is uploaded to an http server and not the correct ftp server. people do this if there is no ftp server available.
0
 

Expert Comment

by:chrisxx
ID: 1542553
The fix is simple: just use an _ (underscore) in place of a space
0
 

Expert Comment

by:chrisxx
ID: 1542554
The fix is simple: just use an _ (underscore) in place of a space
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VIDEO TUTORIALS 4 24
Good way to test home wifi signal continuity? 7 163
Software update for MacBook Pro A1278 10 225
Charging Macbook Pro 8 35
How to recover a playlist after moving the music from one location, folder or hard disk, to a new one, folder or disk. Disclaimer I have performed this procedure after moving my music from one hard disk to a second hard disk using Windows XP sp3…
Does your iMac really need a hardware upgrade? Will upgrading RAM speed-up your computer? If yes, then how can you proceed? Upgrading RAM in your iMac is not as simple as it may seem. This article will help you in getting and installing right RA…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now