fix(smb-backend): add explicit utf8 charset encoding
This commit is contained in:
parent
3169627b79
commit
4594539ce8
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ const mount = async (config: BackendConfig, path: string) => {
|
||||||
const source = `//${config.server}/${config.share}`;
|
const source = `//${config.server}/${config.share}`;
|
||||||
const { uid, gid } = os.userInfo();
|
const { uid, gid } = os.userInfo();
|
||||||
|
|
||||||
const options = [`port=${config.port}`, `uid=${uid}`, `gid=${gid}`];
|
const options = [`port=${config.port}`, `uid=${uid}`, `gid=${gid}`, "iocharset=utf8"];
|
||||||
|
|
||||||
if (config.guest) {
|
if (config.guest) {
|
||||||
options.push("username=guest", "password=");
|
options.push("username=guest", "password=");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue