You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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?
The text was updated successfully, but these errors were encountered: