Boostnote: Export to HTML replaces some special characters with unusual characters

Created on 2 Mar 2018  Â·  3Comments  Â·  Source: BoostIO/Boostnote

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

bug

Most helpful comment

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

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

All 3 comments

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?

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

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

@thedavidgay Thank you for the contribution!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DanielRamosAcosta picture DanielRamosAcosta  Â·  3Comments

NourEldin275 picture NourEldin275  Â·  3Comments

NonlinearFruit picture NonlinearFruit  Â·  3Comments

louiealmeda picture louiealmeda  Â·  3Comments

cyber-arsenull picture cyber-arsenull  Â·  3Comments