Windows 10: Alt codes for ANSI / Unicode not working

Discus and support Alt codes for ANSI / Unicode not working in Windows 10 Customization to solve the problem; I have been using the numeric pad to enter ANSI or Unicode characters for years in Windows 7. The ALT code entry method doesn't work on any Windows... Discussion in 'Windows 10 Customization' started by Cornan The Iowan, Mar 13, 2021.

  1. Alt codes for ANSI / Unicode not working


    I have been using the numeric pad to enter ANSI or Unicode characters for years in Windows 7.

    • The ALT code entry method doesn't work on any Windows 10 system that I have used.
    • I know to keep Num Lock "ON".
    • On the advice of Microsoft and other website I added Registry entry EnableHexPad and set it to 1.
    • Other articles mentioned "Mouse Keys" settings, which have changed and no longer correspond to the articles.


    What do I need to do to restore ALT key operation for Windows 10?


    This was a very important input method for me, both for what Microsoft calls "ANSI" Windows-1252, e.g. ALT+233 or for expressed as Unicode characters, e.g. ALT+0241.

    If this feature has been disabled intentionally, please restore it.


    If it is a settings issue, please advise as to the required settings now in effect.

    :)
     
    Cornan The Iowan, Mar 13, 2021
    #1
  2. Paulr Win User

    Unicodes and language packs


    Several work arounds can be found at http://www.johndcook.com/blog/2008/0...rs-in-windows/
    1. as I suggested above, U+(hexcode) Alt-X
    2. edit a registry key and hold down the Alt key while entering the code on the numeric keypad
    3. download the free utility called UnicodeInput, which pops up with the Alt-+ key
    None of these are useful on my Surface Pro virtual keyboard which is missing both the Alt key numeric keypad *Sad
     
    Paulr, Mar 13, 2021
    #2
  3. Type a Unicode Character

    You can convert numbers from decimal to hex to octal to binary. But those are the numbers used as Unicode code points. They're the "serial numbers" for characters.

    But the alt codes are a different. They're not related to the Unicode code points. There is no numerical conversion from Unicode codes to alt codes.

    Alt codes predate Unicode by a decade or so. Alt codes are just arbitrary numbers that Microsoft assigned. So you have to look up the key codes. Do a google search to find a complete list.
     
    margrave55, Mar 13, 2021
    #3
  4. ddelo Win User

    Alt codes for ANSI / Unicode not working

    Unreadable non-ANSI characters in Notepad

    The problem:
    People living in countries, with languages including non-ANSI characters and want a full English Windows environment.
    If the user sets the System locale (Language for non-Unicode programs) to the country they live in, then many apps will check this setting and without giving the user any option, are installed with a localized interface, i.e. GUI based on the System locale, which might not be desirable.

    The apparent resolution is to change the System locale to English (US), which solves the apps interface issue, but because we’re talking about Microsoft Windows there is (as always…) an exception. In this case is Notepad…
    Notepad has ANSI (= ASCII & Extended ASCII) as its default setting for saving text files. If the text file contains non-ANSI characters then it gives a warning…which if you accidentally bypass and save the file with the ANSI encoding, all non-ANSI characters become unreadable.

    Being such a user, I have an English (US) installation and to avoid the localized app interface, I have set the System locale to English (United States).
    For some reason, which I haven’t found yet, before version 1803, I could save text documents with Greek (non-ANSI) characters and since I wasn’t getting the encoding warning (at least not that often) when saving the file, a lot of files with Greek characters were saved as ANSI and had no problem.

    This encoding issue has become stricter in 1803. My guess is the “Beta: Use Unicode UTF-8 for worldwide language support” setting that has been added when you change system locale has something to do with it. Either way this is, as stated, still in Beta, thus it doesn’t work as it supposed to, yet!

    So how to read all these text files with ANSI encoding, which contain non-ANSI characters, that are now unreadable?

    The solution:
    Step 1
    Go to: Settings > Time & Language > Region & Language > Related Settings > Administrative Language Settings (opens Control Panel) > System locale (Language for non-Unicode programs)

    Alternatively, for short, type in Windows search/Cortana:
    control.exe /NAME Microsoft.RegionalAndLanguageOptions /PAGE /p:"Administrative"

    and change the “System locale (Language for non-Unicode programs)” to the locale of the country you live in (Greece in my case).
    The system will need to reboot. Click Restart.

    Step 2
    Download the UnicodeConverter.zip, save and extract it on your Desktop. The zip file contains three scripts:
    CheckFileEncoding.ps1
    ConvertFilesToUnicode.ps1
    ConvertFilesToUnicode_NoBOM.ps1 (for advanced users)

    Step 3
    Open an elevated PowerShell and type the command:
    Code:
    Then type the following command (provided that you have saved the script in your Desktop):
    Code:
    The script will give you a list of all the ANSI text files, in all your user folders, as System.Text.ASCIIEncoding.

    You can check some with non-ANSI characters and verify that they are readable. (They should, since your locale is a non-ANSI one).

    Step 4
    Now you can run the command:
    Code:
    The script will:
    1. Create a backup folder in C:\Backup\ASCIItxtBackup and will save a backup of all ANSI files you have in your user folders
    2. Convert all ANSI files you have in your user folders to Unicode.

    After that, you can do again Step 3, to verify that there are no ANSI files in your user folders.

    Step 5
    Go to: Settings > Time & Language > Region & Language > Related Settings > Administrative Language Settings (opens Control Panel) > System locale (Language for non-Unicode programs)

    Alternatively, for short, type in Windows search/Cortana:
    control.exe /NAME Microsoft.RegionalAndLanguageOptions /PAGE /p:"Administrative"

    and change the “System locale (Language for non-Unicode programs)” to the English locale of your preference.
    The system will need to reboot. Click Restart.

    That was it. After your computer restarts and since all the text files are now saved in Unicode, they can be read with any System locale.

    Important Note:
    If you want to change either the backup location or the folders where the ANSI text files reside (e.g. search all C:\), open the script “ConvertFilesToUnicode.ps1” and as shown in the red box, in the image below, go to the section where we define the locations and change them according to your needs (e.g. $SourceDirectory = ‘C:\Personal\My Files’). Don’t forget to enclose the folder in quotes (e.g. ‘C:\Backup\My ASCII files’).


    Alt codes for ANSI / Unicode not working [​IMG]


    For Advanced Users
    Microsoft Notepad, saves all Unicode files with BOM (Byte Order Mark). In case you don’t want to use BOM in your Unicode text files, use the “ConvertFilesToUnicode_NoBOM.ps1”. It will do exactly what the “ConvertFilesToUnicode.ps1” does, but instead it will save the text file in any Unicode encoding without the BOM.

    Additionally, to change the Unicode encoding, to another format, in the convert section of the script change the Unicode in the “set-content $_.FullName -Encoding Unicode” part to any other of the available values:

    ‘ASCII’: Uses the encoding for the ASCII (7-bit) character set.
    ‘BigEndianUnicode’: Encodes in UTF-16 format using the big-endian byte order.
    ‘BigEndianUTF32’: Encodes in UTF-32 format using the big-endian byte order.
    ‘Default’: Encodes using the default value: ASCII.
    ‘Byte’: Encodes a set of characters into a sequence of bytes.
    ‘String’: Uses the encoding type for a string.
    ‘Unicode’: Encodes in UTF-16 format using the little-endian byte order.
    ‘UTF7:’ Encodes in UTF-7 format.
    ‘UTF8’: Encodes in UTF-8 format.


    Credits:
    The function Get-FileEncoding, 03-Feb-2015, by VertigoRay - Adjusted to use .NET's [System.Text.Encoding Class] (Encoding Class (System.Text))
     
    ddelo, Mar 13, 2021
    #4
Thema:

Alt codes for ANSI / Unicode not working

Loading...
  1. Alt codes for ANSI / Unicode not working - Similar Threads - Alt codes ANSI

  2. Alt codes not working

    in Windows 10 Gaming
    Alt codes not working: I can't seem to use Alt codes on my Asus laptop. I Bought this about 3 months ago runs Windows 11 and the alt codes have never worked for me. I've tried many things but I just can't seem to make it work....
  3. Alt codes not working

    in Windows 10 Software and Apps
    Alt codes not working: I can't seem to use Alt codes on my Asus laptop. I Bought this about 3 months ago runs Windows 11 and the alt codes have never worked for me. I've tried many things but I just can't seem to make it work....
  4. Are Alt Codes and Unicode universal or not?

    in Windows 10 Gaming
    Are Alt Codes and Unicode universal or not?: I have been finding really inconsistent information most of which is a decade old.I am having a really difficult time trying to type "special" characters. The obvious solution to me is to use Alt Codes or Unicode. However from application to application I get inconstant...
  5. Are Alt Codes and Unicode universal or not?

    in Windows 10 Software and Apps
    Are Alt Codes and Unicode universal or not?: I have been finding really inconsistent information most of which is a decade old.I am having a really difficult time trying to type "special" characters. The obvious solution to me is to use Alt Codes or Unicode. However from application to application I get inconstant...
  6. Alt codes not working

    in Windows 10 Software and Apps
    Alt codes not working: I have a Microsoft surface go 2 running on windows 11, and I bought the Microsoft number pad to be able to use alt codes for accented letters. I have tried everything and I cannot figure out how to get them to work. Only alt+1 through alt+9 are working. I have tried fixing it...
  7. Unicode hex codes not working right

    in Windows 10 Gaming
    Unicode hex codes not working right: On my personal laptop with Windows 10 Pro 2H22 all works fine – when I am using combination of Alt + **** symbol code it works like it must. But on work laptop with Windows 10 Enterprise 2H22 – it works only with right Alt and even then it works not every time. Sometimes it...
  8. Unicode hex codes not working right

    in Windows 10 Software and Apps
    Unicode hex codes not working right: On my personal laptop with Windows 10 Pro 2H22 all works fine – when I am using combination of Alt + **** symbol code it works like it must. But on work laptop with Windows 10 Enterprise 2H22 – it works only with right Alt and even then it works not every time. Sometimes it...
  9. Alt codes not working

    in Windows 10 Customization
    Alt codes not working: Hi. I had been using alt codes to make letters with diacritic marksfor years, but they suddenly stopped working about a month ago e.g. á - this one is copied and pasted from the Character map; the alt code is Alt+0225. Now they only work for single digits - if I type...
  10. Alt Codes not working

    in Windows 10 Customization
    Alt Codes not working: I try to do alt code, they dont work. Even after I go to regedit and make a new string thing... HELP! https://answers.microsoft.com/en-us/windows/forum/all/alt-codes-not-working/83e337dd-5f17-48fa-9d26-892c1d8eea36