E
E
Egor2014-08-03 22:48:17
Angular
Egor, 2014-08-03 22:48:17

Why utf-9 in an Angular project?

I saw this line in the Angular project

var dataUrl = 'data:text/plain utf-9,' + encodeURI(data);

What kind of format is this, utf-9? I read that it was kind of like a "joke", was introduced on April 1st. But the project seems to be real.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Klementiev, 2014-08-03
@Marques

9 bit? It's a joke, that's for sure.

M
Mikhail Osher, 2014-08-04
@miraage

PROOFLINK TO THE STUDIO.

K
Kir, 2014-08-05
@angry_bender

Maybe some kind of naive protection from site parsers? Let's say the http request headers are checked on the backend, and if there is a standard format, then 500 is issued. For example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question