Set activeCodePage to UTF-8 in the Notepad3.exe.manifest file. - #5970
Set activeCodePage to UTF-8 in the Notepad3.exe.manifest file.#5970geniuszxy wants to merge 1 commit into
Conversation
|
Hello @geniuszxy , |
|
Again, I can't reproduce your issue... 🔍 🤔
You can find this beta version here: #1129 |
|
Yes, I can reproduce this issue using the PAF version you provided. This is a video record: 2026-08-14.23-05-03.mp4 |
|
I did some research on this, and as I mentioned, it seems to be related to the version of Windows. I am using Windows 10 22H2, and the version of the kernelbase.dll is 10.0.19041.6280. I decompiled the I guess this Therefore, strings like And I downloaded another kernelbase.dll with version 10.0.26100.8972 online, the decompilation result of its From the condition of |
|
Hi @hpwamr, have you enabled "Beta: Use Unicode UTF-8 for worldwide language support" in the locale settings? This setting can solve my issue, but it can also corrupt other softwares. |
Fix #5963
Referring to zufuliu#168, sometimes StrTrimA() cannot handle some UTF-8 strings correctly, so I changed the code to directly check the last two chars.I have found another way to solve this issue without touching code, referring to Use UTF-8 code pages in Windows apps, so that ANSI APIs can also handle UTF-8 strings correctly.