activescott / activescott/serverless-aws-static-file-handler

Unicode support

未关闭
#206 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug good first issue help wanted
主要语言
JavaScript
星标
51
派生
14
平均合并
1 天 8 小时
30 天内合并 PR
4

描述

### Expected behavior:
Can place UTF8 characters such as ⏲️ in a .html file and they render as-is after output

### Actual behavior:
`⏲️`

### Steps to reproduce the problem:
```
import StaticFileHandler from 'serverless-aws-static-file-handler';

import { dirname,join as pathjoin} from 'path';
import { fileURLToPath } from 'url';

const __dirname = dirname(fileURLToPath(import.meta.url));

const clientFilesPath = pathjoin(__dirname,"./public/")
const fileHandler = new StaticFileHandler(clientFilesPath);

export async function importTest(event,context){
return fileHandler.get(event, context);
}
```
where public/index.html is as above

### Environment:
serverless-aws-static-file-handler 4.0.2
node 18.12.1, framework 3.25.1 (local) 3.25.1v (global), plugin 6.2.2, SDK 4.3.2
Ubuntu 22.04 LTS

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。