Is there a default charset for data URIs? I read the spec but I don't see one.
For instance, if I have a data URI for a source map which I expect to be reliably interpreted across browsers, is it OK to omit the charset?
//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJza...
vs
//@ sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJza...
I see in this GitHub issue that people have had problems using Chinese characters in source-mapped files without an explicit charset=utf-8
. So if there is a default (or, at least, if we could expect browsers to have chosen one), it doesn't seem like utf-8
is the one...