HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.
https://heinrichapfelmus.github.io/threepenny-gui/
Other
437 stars 77 forks source link

Is it possible show multi bytes character? #278

Open wvogel00 opened 6 months ago

wvogel00 commented 6 months ago

I touched some samples and am now building my first simple application with this library. I want to use multi-byte characters (like Japanese) for this application. However, this library uses not ByteString or Text but String. Can I show multi-byte characters with this library??

bradrn commented 6 months ago

It’s been a while since I last used threepenny-gui, but Haskell’s String type has Unicode support — Char is not a single byte. Occasionally there are IO problems (particularly on Windows), but I believe setting the locale should fix those.