'ascii' | 'utf8'
'utf8'
The charset
config allows you to specify the character encoding format for output files to ensure they are displayed correctly in different environments.
By default, Rsbuild's output is UTF8 encoded.
Rsbuild adds the <meta charset="utf-8">
tag to HTML by default. You can change this using the html.meta config.
If you want the output files to use ASCII encoding, you can set this in the config file like this:
When using ASCII encoding, all non-ASCII characters are escaped with backslashes, which may make the files slightly larger and harder to read.