Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 8 – bad encoding in String Iterators example #425

Open
rsmeral opened this issue Apr 1, 2018 · 1 comment
Open

Chapter 8 – bad encoding in String Iterators example #425

rsmeral opened this issue Apr 1, 2018 · 1 comment

Comments

@rsmeral
Copy link
Contributor

rsmeral commented Apr 1, 2018

The examples in the String Iterators section contain this in the source:

var message = "A 𠮷 B";

and later

A
(blank)
𠮷
(blank)
B

However, it renders as:

var message = "A ð ®· B";

and

A
(blank)
ð ®·
(blank)
B

The error happens before the HTML gets to the client. In other words, it's not a decoding error. A ð ®· B are the actual characters that arrive from the server.

@rsmeral rsmeral changed the title Chapter 8 – bad encoding in String Iterators example leads Chapter 8 – bad encoding in String Iterators example Apr 1, 2018
@pamelafox
Copy link
Sponsor

I believe the same issue happens in the Symbols chapter.

The comment says:
"console.log(String(freezing)); // "32째"

But the code says:
console.log(String(freezing)); // "32°"

https://github.com/nzakas/understandinges6/blob/master/manuscript/06-Symbols.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants