Unicode mapping error
Posted: Mon Nov 03, 2025 6:00 pm
Hi all,
Setup:
The reason I tweaked Windows was I had a problem when I created new text files from Windows Explorer context menu i.e.: Right mouse click -> New -> Text file.
Files were created with an encoding not familiar nor suitable for me. It might have been just starndard ASCII, for example Scandinavian letters åäö were not working.
I followed this AI-generated guide and got it working within Windows:
In Step 3 Folder C:\Windows\ShellNew did not exist, I created it.
Seems Textpad did not like this. New files, created after tweaking, work fine. Many of my old files do not but cause the error and open up as empty files.
Long story short, 2 questions:
Setup:
- Textpad 9.4.0 (64-bit)
- Windows 11 Pro 25H2
After closing the notification the file opens as an empty file.No mapping for the unicode character exists in the target multi-byte code page
The reason I tweaked Windows was I had a problem when I created new text files from Windows Explorer context menu i.e.: Right mouse click -> New -> Text file.
Files were created with an encoding not familiar nor suitable for me. It might have been just starndard ASCII, for example Scandinavian letters åäö were not working.
I followed this AI-generated guide and got it working within Windows:
In Step 1 I copied an existing file, did not create new one.
- Save a file with the desired encoding: Open a new, blank Notepad file. Go to File > Save As... and choose your desired encoding (e.g., UTF-8) from the dropdown menu. Save the file as New Text Document.txt.
- Rename the template file: Rename the file to something like TXTUTF-8.txt.
- Copy the file to the ShellNew folder: Navigate to C:\WINDOWS\SHELLNEW and copy TXTUTF-8.txt into it.
- Modify the registry: Open the Registry Editor by typing regedit in the Run dialog box (Windows key + R).
- Navigate to the ShellNew key: Go to HKEY_CLASSES_ROOT\.txt\ShellNew.
- Create or modify the FileName value: In the right-hand pane, right-click to create a new String Value and name it FileName (if it doesn't exist).
- Set the value data: Double-click FileName and enter TXTUTF-8.txt in the Value data field.
- Test the new default: Right-click on the desktop, select New, and then Text Document. Open the new file, and check Save As... to confirm that the encoding is set to your preference by default.
In Step 3 Folder C:\Windows\ShellNew did not exist, I created it.
Seems Textpad did not like this. New files, created after tweaking, work fine. Many of my old files do not but cause the error and open up as empty files.
Long story short, 2 questions:
- Is there any workaround to get all new files created with UTF-8 encoding?
By 'all' I mean both those new files saved from Textpad or Notepad and those created from Windows Explorer. - How do I open my old files in Textpad?