threepenny-gui icon indicating copy to clipboard operation
threepenny-gui copied to clipboard

Is it possible show multi bytes character?

Open wvogel00 opened this issue 8 months ago • 1 comments

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??

wvogel00 avatar Dec 16 '23 14:12 wvogel00

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.

bradrn avatar Dec 16 '23 14:12 bradrn