jaicab / localFont

Implement localStorage web font caching in seconds
http://jaicab.com/localFont/
MIT License
848 stars 22 forks source link

charset=utf-8 necessary? #8

Open Nettsentrisk opened 9 years ago

Nettsentrisk commented 9 years ago

For binary base64-encoded data, setting the charset to utf-8 for the data uri doesn't seem to be relevant. You'd only want this if it contained encoded text.

You'll also confuse people using LESS, by thinking they should add the "charset=utf-8" bit as part of the mime type, which turns off base64-encoding using that function, and thus prevents it from being encoded to a data uri.

jaicab commented 8 years ago

Fair enough. I'll have a look at this, thanks!