The customer portal my.neoserv.com has been redesigned. If you notice any issues, please let us know.

Cart (0)
  • Your cart is currently empty.

NEOSERV BLOG

Tips, guides and useful information about domains, hosting, SSL certificates, email, web optimization and online security.

Imena datotek brez posebnih znakov
Category: Tips and Tricks
Published:

People’s habits vary, and we can quickly see this when naming files. Some people use only lower case letters for file names, others use a capital letter, and sometimes there is someone who uses only upper case letters. In addition, some people use hyphens, underscores, spaces, periods, commas, em dashes or other special characters in their file names.

Because not all systems and devices are the same, this variety of file naming can sometimes cause problems. These occur most often when migrating a website from one server to another, as different servers may be configured to encode different special characters.

The standard character encoding type is ASCII ( American Standard Code for Information Interchange), which is used in computing to store and load characters as bit patterns. Developments in technology around the world have led to several encoding variants, the most commonly used on the web being UTF-8 ( Unicode Transformation Format – 8-bit).

Due to the different character encoding and decoding processes, problems arise especially with files that include special characters in their names. This includes symbols, alphabets and other letters that are not part of the English alphabet.

Problems with images after migration to another server

The most noticeable problem, which rarely occurs when migrating a site to another server, is related to images. Those images that contain special characters (e.g. alphabets) in their filenames may not be displayed due to improper (de)coding. Usually, only the icon of the non-functioning image and its Image Title will be displayed where the image should be inserted.

Image with a diacritic character in the file name

Avoid these problems by not including alphabets and other special characters in the file names. Also, avoid using spaces. For additional tips on naming files appropriately, see below.

Useful tips for naming files

The tips mentioned below should be followed when naming folders as well as all types of files (images, text, tables, PDF, etc.).

  1. Do not use the alphabets and special characters shown in the table.
č š ž # % & {
} \ < > * ? /
$ ! : ; @
  1. Do not use letters other than those in the Latin alphabet (ü, ö, á, …).
  2. Do not begin or end a file name with a space, period, hyphen or underscore.
  3. Use a hyphen instead of a space or underscore.
  4. File names should not be too long. Use file names shorter than 31 characters.
  5. As most operating systems are case-sensitive, always use only lower case letters.

It is therefore best to use only letters and numbers of the classical Latin alphabet and a hyphen instead of a space.

Finally, here are some more examples of appropriate and inappropriate file naming.

  • Appropriate: sola.jpg, rdeca-denarnica.jpeg, ziga-kavcic.jpg, background.png
  • Inappropriate: School.JPG, red-wallet.jpeg, ziga_kavcicic.jpg, BACKGROUND.PNG

By following these tips and good practice examples, you will certainly avoid problems that might otherwise arise after transferring your website to another server.

COMMENTS

COMMENT THE POST

(mandatory)
(mandatory, email address will be hidden)
(optional)
Security question that confirms you are a real person.