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

Unicode support

Đang mở
#206 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug good first issue help wanted
Ngôn ngữ chính
JavaScript
Star
51
Fork
14
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
4

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.