Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Chinese font was convert to unicode when I set the charset:'ascii' #14037

Closed
DamonCais opened this issue Aug 7, 2023 · 1 comment
Closed

Comments

@DamonCais
Copy link

In Vite 4.0, we changed the default charset to UTF-8 (#10753). But there was a bug that this was not applied to CSS (#12565); this fix landed in 4.3.0.
Since Vite 4, we expects users to setup the server configuration correctly (not to set other char set in Content-Type or <meta charset="">).

If you really want to convert the result to ASCII only, you can use esbuild.charset: 'ascii' option.

Originally posted by @sapphi-red in #13676 (comment)

when I set the charset 'ascii' . the chinese font in js file was also converted to unicode which was not my expected. how can I fix it?

@DamonCais DamonCais changed the title The Chinese font was convert to unicode The Chinese font was convert to unicode when I set the charset:'ascii' Aug 7, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Hello @DamonCais. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants