You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Chinese Windows and the default name for a new directory is "新建文件夹".
However, after creating the directory the characters turned out to be "鏂板缓鏂囦欢澶?" which is a complete mess. The file name in Linux is correct.
I tried to change line 727 of DokanOperations.cs from
fi.FileName = entry.getFilename();
to
fi.FileName = Encoding.UTF8.GetString(Encoding.Default.GetBytes(Encoding.UTF8.GetString(entry.getFilename().getBytes()))); // Encoding.Default in Chinese Windows is GB2312
and got "新建文件�?" which is nearly correct but the last character is broken.
In the above example, entry.getFilename().getBytes() for "新建文件夹" is as follows:
I'm using Chinese Windows and the default name for a new directory is "新建文件夹".
However, after creating the directory the characters turned out to be "鏂板缓鏂囦欢澶?" which is a complete mess. The file name in Linux is correct.
I tried to change line 727 of DokanOperations.cs from
to
and got "新建文件�?" which is nearly correct but the last character is broken.
In the above example, entry.getFilename().getBytes() for "新建文件夹" is as follows:
I created a directory named "新"(a single character), and found entry.getFilename().getBytes() is only a byte long. Obviously it is truncated.
So I doubt there are some problems with SharpSSH.
The text was updated successfully, but these errors were encountered: