[Pharo-users] Encoding CJK URL?

2014-09-04 Thread Wowerat Dirk
My code to download some UTF8 text with japanese kanji from an url: url := 'http://www.hatinosu.net/onsen/import.kml' asZnUrl. url_string := url retrieveContents. url_string class. ByteString Now the japanese parts of url_string are unreadable. What I need is WidString and not ByteString. On lin

[Pharo-users] different backgroundcolors in PluggableTextMorph?

2014-08-21 Thread Wowerat Dirk
How can I set the backgroundcolor of substrings in PluggableTextMorphs? In this short example, the word 'two' in red textcolor with yellow background. currentPosition := 2. myList := #('one' 'two' 'three' 'four' 'two'). myBlock := [:element |     element = (myList at:currentPosition)         ifTr