codefrau / SqueakJS

A Squeak Smalltalk VM in Javascript
https://squeak.js.org
MIT License
365 stars 75 forks source link

Scratch text rendering unicode issue #104

Open codefrau opened 4 years ago

codefrau commented 4 years ago

on https://squeak.js.org/scratch/#fullscreen the language menu (globe icon) creates a menu with a malformed marker that looks like ,Ä¢. That probably is a 3-byte UTF-8 sequence that is not properly decoded.

codefrau commented 4 years ago

The Smalltalk code does not expect that neither UnicodePlugin nor Pango2Plugin are available, so it falls back on the Squeak text rendering without using asMacRoman to convert the UTF8 string created in languageMenu: back to Squeak encoding.