• BATCH > caractères spéciaux

      Dans un fichier .bat, les caractères spéciaux ne sont pas reconnus. Il faut recourir à cette manipulation :

       

      Caractère voulu → ALT + CODE pavé numérique → Caractère affiché dans le .bat

       

      ╔ → 144É

      ╝ → 212È

      ═ → 214Í

      ║ → 167º

      ╗ → 175»

      ╚ → 172¼

      251¹

      →  →

       

       

      ╬ ╠  ╦  ╩ ═ ╣

      ┌ ─ ┬ ─ ┐
      ├ ─ ┼ ─ ┤
      └ ─ ┴ ─ ┘
      ┍ ━ ┭ ━ ┑
      │   │   │
      ┟ ━ ┽ ━ ┥
      ┕ ━ ┵ ━ ┙

      ╒ ═ ╤ ═ ╕

      ╞ ═ ╪ ═ ╡

      ╘ ═ ╧ ═ ╛

      ╓ ─ ╥ ─ ╖

      ╟ ─ ╫ ─ ╢

      ╙ ─ ╨ ─ ╜

       

      ┌┐└┴┘

      ┍┎┏

      ┑┒┓

      ┕┖┗

      ┙┚┛

      ┝━━━┥ ┞┦ ┟┧ ┠┨ ┡━━━┩ ┢━━━┪  ┣━━━┫

       

      ┪ ┫┭ ┮ ┯ ┰ ┱ ┲ ┳

      ┵ ┶ ┷ ┸ ┹ ┺ ┻

      ┽ ┾ ┿ ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋

      COMMENT ÉCRIRE DES CARACTÈRES SPÉCIAUX

      Méthode 1 : Universel

      Maintenir enfoncé [ALT] > [+] > Type the hexidecimal unicode value > relâcher ALT

       

      Si ça ne fonctionne pas : regedit > HCU/Control Panel/Input Method, set EnableHexNumpad to "1″. If you have to add it, set the type to be REG_SZ.

      Méthode 2 : Input-language Specific

      Press and hold down the Alt key.

      Type 0 (zero) and the decimal unicode value on the numeric keypad.

      Release the Alt key.

       

      You can see which input language you are using (and which are installed) by:

       

      Démarrer > Settings > Control Panel > Regional and Language Options > Languages tab > Detail button

       

      The entries in the Unicode character information section are using the Windows Latin 1 input language.

      Méthode 3 : Code-page Specific

      Press and hold down the Alt key.

      Type the decimal codepage value on the numeric keypad. Do not type any leading zeros.

      Release the Alt key.

       

      You can see which code page you have by typing chcp at a command prompt. Check the grid for your code page from the list of known code pages to see what characters you can enter this way.

       

      The entries in the Unicode character information section are using code page 437.

      Méthode 4 : Application-specific

      Applications can support their own methods. These are not standardized.

       

      Several Microsoft applications, including WordPad and Microsoft Word:

      press Alt-X after typing some hex digits. You see the digits as you type them, and they’re replaced by the Unicode equivalent. Pressing Alt-X again converts it back to numbers.

      Méthode 5 : Unicode IME

      Go into Control Panel > Regional Settings, on the languages tab, enable support for East Asian languages. This takes 230 MB of disk space and a restart.

      Go back into Control Panel > Regional Settings, on the languages tab, press the Details button.

      Add Chinese (Taiwan) (Others would probably work too) and choose Chinese (Traditional) - Unicode.

      You will now have an extra do-hickey in the taskbar showing which language you’re in.

      Press LeftAlt Shift to switch into the IME (taskbar shows CH).

      Type the hex digits of the Unicode character. As soon as you type the last one, it is sent to the application.

      Press LeftAlt Shift to switch out of the IME (taskbar shows your original language code).

 

Aucun commentaire

 

Laissez un commentaire