Michigan Technological University

UMC

Characters to Avoid in Directories and Filenames

You may only work in one operating system, however your web files will be viewed by numerous systems. Therefore, it becomes essential that you play it safe and avoid common illegal directory and filename characters. Some are illegal because a specific operating system doesn’t support them, others because they are used as variables or reserved characters. Naming conventions are important in web addresses as well as for binary files.

Do not use any of these common illegal characters:

 

# pound< left angle bracket$ dollar sign+ plus sign
% percent> right angle bracket! exclamation point` backtick
& ampersand* asterisk‘ single quotes| pipe
{ left bracket? question mark“ double quotes= equal sign
} right bracket/ forward slash: colon 
\ back slashblank spaces@ at sign 

 

Also, keep these rules in mind.

  • Don’t start or end your filename with a space, period, hyphen, or underline.
  • Keep your filenames under 31 characters.
  • Most operating systems are case sensitive.
  • Non-ASCII characters need to be escaped.

Example:

Bad filenamesTranslates to
F&A Costs.htmlF&amp;A%20Costs.html
my PDF file#name.pdfmy%20PDF%20file%23name.pdf

Good filenames:

  • F_A_Costs/index.html  or  F-A-Costs/index.html
  • my_PDF_file_name.pdf  or  my-PDF-file-name.pdf

Note: This list is not exhaustive. It is meant to help you avoid common errors in filenames.

Marketing and Communications

Administration Building G13
1400 Townsend Drive
Houghton, Michigan 49931-1295

Ph. 906-487-2354
Fax: 906-487-3553
Email: umc@mtu.edu

Michigan Technological University

1400 Townsend Drive
Houghton, Michigan 49931-1295
906-487-1885

See a Problem?

Email the Webmaster