Unicode support
Maintainers usually reply within 11 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, javascript, node.js
- Domain
- backend
Research direction
Reproduce with the provided importTest handler calling fileHandler.get(event, context) and a public/index.html containing ⏲️, confirming it returns â²ï¸. In the serverless-aws-static-file-handler code, trace the StaticFileHandler.get path, especially where file contents are read and response headers/body are encoded. First inspect the HTML-serving branch and any charset handling, then run the same call after changes and verify the emoji is preserved.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 51
- Forks
- 15
- Avg merge
- 10d 13m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from activescott/serverless-aws-static-file-handler
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
activescott/serverless-aws-static-file-handler#463 ·
Maintainers usually reply within 11 days
-
bug good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 50/100
activescott/serverless-aws-static-file-handler#135 · 1 comment ·
Maintainers usually reply within 11 days
-
enhancement good first issue help wanted pri-high
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
activescott/serverless-aws-static-file-handler#37 · 2 comments · 1 reaction ·
Maintainers usually reply within 11 days
All issues in activescott/serverless-aws-static-file-handler
Similar issues
-
bug confirmed issue
Difficulty 1/5 Under an hour Newbie friendliness 90/100
open-webui/open-webui#35507 · 2 comments ·
Maintainers usually reply within 1 day
-
beginner-friendly category:tests community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Berserk-hub150/skillhawk#300 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Fei2411/DeepSeek-Bot#2896 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
area:ui P2 status:blocked
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sunososobro-hub/cloudball#1234 ·
Maintainers usually reply within 1 day