I’m under the impression that JavaScript interpreter assumes that the source code it is interpreting has already been normalized. What, exactly does the normalizing? It can’t be the text editor, otherwise the plaintext representation of the source would change. Is there some “preprocessor” that does the normalization?
I’m under the impression that JavaScript interpreter assumes that the source code it is
Share
No, there is no Unicode Normalization feature used automatically on—or even available to—JavaScript as per ECMAScript 5. All characters remain unchanged as their original code points, potentially in a non-Normal Form.
eg try:
Update: ECMAScript 6 will introduce Unicode normalization for JavaScript strings.