Unicode

One of programmer’s worst nightmare.

Substitution for Path

Let’s use unicode for illegal character.

Windows 7

Add new String value named EnableHexNumpad with value 1 to HKEY_Current_User/Control Panel/Input Method in Windows 7.

After restart you can do the following step:

  1. Press and hold down the Alt key.

  2. Press the + (plus) key on the numeric keypad.

  3. Type the hexadecimal unicode value.

  4. Release the Alt key.

Important

Due to Alt key is shortcut to menu, some application cannot directly enter the unicode character. So you must enter the unicode character in other application such as Windows Explorer by creating new folder for example.

Character List

Name

Symbol

Unicode

Fullwidth Reverse Solidus

U+FF3C

Fullwidth Solidus

U+FF0F

Fullwidth Colon

U+FF1A

Fullwidth Asterisk

U+FF0A

Heavy Asterisk

U+2731

Fullwidth Question Mark

U+FF1F

Fullwidth Quotation Mark

U+FF02

Fullwidth Less-Than Sign

U+FF1C

Fullwidth Greater-Than Sign

U+FF1E

Pipe

ǀ

U+01C0

Automatic Clipboard Replacement

Manually adding the character is a real pain in the ass after some time especially when renaming a file or folder. In the past I use Clipbor, but because it’s discontinue in SyMenu, now I use ArsClip and trust me, it’s much better and powerful.

To replace all invalid character in path when pasting:

  1. Right click ArcClip icon in Systray.

  2. Click Edit Clips/Macros….

  3. Click Permanent Clips/Macros.

  4. In the Default or in the your newly created group, click New.

  5. Click Clip Type then ArsClip Macro

  6. Click Clip Type then Ignore new line characters in scripts.

  7. Type a name you want in Menu Caption textbox.

  8. Paste these lines in Clip to Paste textarea.

    [CLIPBOARDFIND="\" REPLACE="\"]
    [CLIPBOARDFIND="/" REPLACE="/"]
    [CLIPBOARDFIND=":" REPLACE=":"]
    [CLIPBOARDFIND="*" REPLACE="*"]
    [CLIPBOARDFIND="?" REPLACE="?"]
    [CLIPBOARDFIND="<" REPLACE="<"]
    [CLIPBOARDFIND=">" REPLACE=">"]
    [CLIPBOARDFIND="|" REPLACE="ǀ"]
    [CLIPBOARDFIND="""" REPLACE="""]
    [PASTEDEFAULT]
    
  9. For convenience, set Global hotkey.