hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.
https://sprig.hackclub.com
MIT License
924 stars 1.14k forks source link

Incorrect characters being displayed with `addText()` #1758

Open transcental opened 5 months ago

transcental commented 5 months ago

Describe the bug When using addText() with the pipe operator, |, ö is displayed instead.

Whilst I discovered this with |, it's also an issue for other symbols such as ~, ± and §. These are shown respectively in the bottom screenshot.

To Reproduce Steps to reproduce the behavior:

  1. Make a Sprig project.
  2. Use addText() with |
  3. Run the game
  4. See ö displayed

Expected behavior The correct character to be displayed.

Actual behavior
A different character displayed.

Screenshots If applicable, add screenshots to help explain your problem. image | being displayed

image

~, ± and § being displayed

snoglobe commented 5 months ago

is it just my phone or are the provided screenshots corrupted? imageimage