How Windows manages spacing characters in file and folder names



RECOMMENDED: Click here to fix Windows errors and optimize system performance

In computer typography, a space is any character representing a horizontal or vertical space. When these spaces are rendered, it usually takes up space on a page, but its result is a’space’. There are different spaces representing different widths of space. Only the ASCII characters Space (0x20) and ASCII Period (0x24) are specially managed by the object manager.

Can you use spaces in file and folder names?



January 2021 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

download



Windows 8/10 processes spaces in file and folder names as follows :

  1. If a file is stored as `Twc.txt’, where the main character is an ASCII space (0x20), it is stored as `Twc.txt’.
  2. If a file is saved as’Twc.txt’, where the next character(s) is an ASCII space (0x20), it is saved as’Twc.txt’.
  3. When a file is saved as ‘ Twc.txt’, where the main character(s) is/are an alternative space, such as ideographic space (0x3000), it is saved as ” Twc.txt”. The sketches in the head are not removed.
  4. When a file is saved as’Twc.txt’, the next character(s) being an alternative space, such as the ideographic space (0x3000), it is saved as’Twc.txt’. The following spaces are not deleted.
  5. If a file is saved as Ž.Twc.txt’, where the main character is an ASCII point (0x2E), it is saved as Ž.Twc.txt’.
  6. If a file is saved as’Twc.txt’, where the next character(s) is an ASCII point (0x2E), it is saved as’Twc.txt’.

The Win32 and WinRT APIs have different ecosystem requirements, listing file and folder names starting or ending with different spaces for each.

More information under KB2829981. 2)

RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance

Related Video