?
Solved

MAC %20 Problem

Posted on 1998-04-15
6
Medium Priority
?
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 400 total points
ID: 1542551
the problem is minor. tell the user...thats just the way it is.
0
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 
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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Apple's line of laptop computers has made significant strides forward in the last few years. The biggest change being the switch to Intel processors in 2005. One thing about Apple hardware, especially that from a few years ago, is the tendency for i…
Thanks to luck and dedication (hitting refresh every 5 seconds when the pre-orders were going live at midnight on April 10th) I managed to actually receive an Apple Watch on release day, April 24th. Which means I’ve been using it daily for just ov…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

801 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