Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Declare UTF-8 through manifest #86

Open
Ghabry opened this issue Apr 24, 2024 · 2 comments
Open

Windows: Declare UTF-8 through manifest #86

Ghabry opened this issue Apr 24, 2024 · 2 comments

Comments

@Ghabry
Copy link
Member

Ghabry commented Apr 24, 2024

Since Windows 10 2019 update it is possible to set the app codepage to UTF-8: https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page

We could add that manifest to get Unicode support in our tools on Windows for free.


(Not worth for the Player imo as our abstraction there is already fairly good and likely not all migrated to the adware named Windows 10 xD)

@scurest
Copy link
Contributor

scurest commented Jan 13, 2025

For anyone who needs this, you don't have to wait for an official release with it. It's easy to staple the manifest to the .exe yourself.

Download rcedit, create a .xml file with this manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
  <assemblyIdentity type="win32" name="..." version="6.0.0.0"/>
  <application>
    <windowsSettings>
      <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
    </windowsSettings>
  </application>
</assembly>

and run eg. rcedit.exe path/to/lmu2png.exe --application-manifest path/to/manifest.xml to edit the tool's .exe in place.

This makes lmu2png.exe work on Japanese games, at least under Wine.

@Ghabry
Copy link
Member Author

Ghabry commented Jan 13, 2025

According to the documentation it should even work when you call the xml file "lmu2png.exe.manifest" and place it next to the exe. Though last time I tried this it didn't work... (And couldn't figure out why)

When this works it would be cool for locals emulation on Windows because since Windows 11 you can also write stuff like "ja-JP" in it. (I attempted this with "RPG_RT.exe.manifest") to run Japanese games.

Have to try this again with using that tool...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants