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

Export to HTML replaces some special characters with unusual characters #1624

Closed
dtgay opened this issue Mar 2, 2018 · 3 comments
Closed
Labels
bug 🐛 Issue concerns a bug.

Comments

@dtgay
Copy link
Contributor

dtgay commented Mar 2, 2018

My setup

I am running Boostnote 0.10.0 on High Sierra 10.13.3. My broswer is Firefox Quantum 58.0.2 (64-bit).

The symptoms

Using the export to HTML feature renders some characters incorrectly. For example, the character is rendered as either – or – , as seen here:
image

It looks like the  occur where &nbsps are, as seen in the developer tools here:
image

In addition, apostrophes (') render as ’, as seen below:
image

In the developer tools, here is the same instance of isn't:
image

Example files

Attached is a note file and its HTML export that demonstrate the issue. I changed the cson and html file extensions to txt so GitHub would accept them.

403e979b9127baf0d473.txt
export.txt

(I can't provide the exact file I noticed the bug on because it contains private information, but I am providing a heavily censored duplicate which shows the same symptoms.)

EDIT: Another example is double quotes (") being replaced as well. "Internet of Things" is rendered as below:
image

@dtgay dtgay changed the title Export to HTML replaces dashes and apostrophes with unusual characters Export to HTML replaces some special characters with unusual characters Mar 2, 2018
@Rokt33r Rokt33r added the bug 🐛 Issue concerns a bug. label Mar 3, 2018
@Rokt33r
Copy link
Member

Rokt33r commented Mar 3, 2018

Funny. 😂😂 I think it is because that we forgot to put <meta charset="UTF-8"> when exporting it.
Could you check again after put the meta tag to the exported html file?

@dtgay
Copy link
Contributor Author

dtgay commented Mar 6, 2018

Adding <meta charset="UTF-8"> to the exported HTML resolves the issue.

I've opened a pull request with a fix. ^

@Rokt33r Rokt33r closed this as completed in 4800a88 Mar 6, 2018
Rokt33r added a commit that referenced this issue Mar 6, 2018
@Rokt33r
Copy link
Member

Rokt33r commented Mar 6, 2018

@thedavidgay Thank you for the contribution!

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

No branches or pull requests

2 participants