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

swc_ecma_minifier support charset option #9515

Open
ahaoboy opened this issue Aug 30, 2024 · 2 comments
Open

swc_ecma_minifier support charset option #9515

ahaoboy opened this issue Aug 30, 2024 · 2 comments

Comments

@CPunisher
Copy link
Contributor

This could be expected with default target Es5.

es5("ퟻ", "\"\\uD7FB\"");

@ahaoboy
Copy link
Author

ahaoboy commented Sep 7, 2024

This could be expected with default target Es5.

The expected behavior should be to display the characters directly instead of Unicode encoding, because in some engines, multi-byte encoding cannot be handled and only characters can be used. And the strange thing is that only some characters seem to be converted to unicode codes. These three are characters from the same font.

export const History = "󰋚"
export const Heart = ""
export const Random = ""

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants