> map (chr . (`mod` 256) . ord) "My title: О©╫О©╫О©╫О©╫О©╫О©╫"
> "My title: 9FC:5="
On 21.09.2010 18:34, Alexey Karakulov wrote:
>> When I do something like
>>
>> ghci> let myPlot = layout1_title ^= "My title: О©╫О©╫О©╫О©╫О©╫О©╫" $
>> defaultLayout1 :: Layout1 () ()
>> ghci> renderableToWindow (toRenderable myPlot) 300 300
>>
>> I got ugly text in picture, like "My title: 9FC:5=".
>>
>> My system is linux with en_US.utf8 locale, so it shouldn't be encoding
>> problem.
>>
I suspect this has something to do with the "simple" API provided by
cairo for rendering text. I'll take a look at what's involved in the
more extensive text API in the next few days.
Tim