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

Native DLL load fails when path contains non-English characters #18

Open
Tsury opened this issue Dec 29, 2019 · 1 comment
Open

Native DLL load fails when path contains non-English characters #18

Tsury opened this issue Dec 29, 2019 · 1 comment

Comments

@Tsury
Copy link

Tsury commented Dec 29, 2019

When path contains non-English characters, in this example, דגכעחศรัณย์לכע223, the native call to BrotliEncoderCreateInstance fails.

Using .NET 4.5 x64

image

@XieJJ99
Copy link
Owner

XieJJ99 commented May 23, 2021

@Tsury ,since I has no similar environment,could you kindly try to modify the CharSet to Unicode as the follow code:

    static class WindowsLoader
    {
        [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
        public static extern IntPtr LoadLibrary(string dllFilePath);

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

No branches or pull requests

2 participants