As Dale writes, changing the encoding of the server now doesn't help. In fact, it will just mess up your model with strings in different encodings. To fix you need to somehow find this Widestring and replace it with an UTF-8 encoded one; or disable the encoding of the server and transform all strings into bytearrays as Strings.
The pain with encodings in Pharo is that whatever you do you end up with a broken system in some ways (see philipps presenation last ESUG). If you don't encode in my experience this causes less problems and is more performant. Lukas On Tuesday, 12 July 2011, Tudor Girba <[email protected]> wrote: > Hi Lukas, > > I now switched to WAKom instead of WAKomEncoded, but the problem still > persists. Any ideas? > > Cheers, > Doru > > On 12 Jul 2011, at 13:37, Lukas Renggli wrote: > >> This is a long known problem: >> http://code.google.com/p/pharo/issues/detail?id=2353. For now it can >> only be avoided by not using WideString (i.e. by not using an encoded >> server adapter). >> >> Lukas >> >> On Tuesday, 12 July 2011, giorgio ferraris <[email protected]> >> wrote: >>> Hi, Tudor, >>> if I use the search facility on the bbok, i get the following: >>> Internal Error >>> Error: subscript is out of bounds: >>> 8218ByteArray(Object)>>errorSubscriptBounds: >>> ByteArray(Object)>>at: >>> WideString(String)>>findSubstring:in:startingAt:matchTable: >>> WideString(String)>>findString:startingAt:caseSensitive: >>> WideString(String)>>includesSubstring:caseSensitive: >>> [] in [] in PRFullTextSearch>>visitStructure: >>> [] in Set(Collection)>>anySatisfy: >>> Set>>do: >>> Set(Collection)>>anySatisfy: >>> [] in PRFullTextSearch>>visitStructure: >>> SortedCollection(OrderedCollection)>>do: >>> MAPriorityContainer(MAContainer)>>do: >>> PRFullTextSearch>>visitStructure: >>> PRFullTextSearch(PRVisitor)>>visitCase: >>> PRFullTextSearch(PRVisitor)>>visitPublication: >>> PRFullTextSearch(PRVisitor)>>visitPortion: >>> BOPortion>>accept: >>> BOPortion(Object)>>acceptDecorated: >>> [] in BOPortion(PRDecorated)>>acceptDecorated: >>> BOPortion(PRDecorated)>>decorationsDo:ownerDo: >>> >>> thanks for the document >>> >>> giorgio ferraris >>> >>> On Mon, Jul 11, 2011 at 2:18 AM, Tudor Girba <[email protected]> wrote: >>> >>> Hi, >>> >>> I put together a tutorial for PetitParser in The Moose Book: >>> http://www.themoosebook.org/book/internals/petit-parser/mse >>> >>> The tutorial is meant to work with a Moose image and it is based on the >>> same scenario as I used at the Deep into Smalltalk School: >>> http://www.slideshare.net/girba/petitparser-at-the-deep-into-smalltalk-school-2011 >>> http://ci.moosetechnology.org/job/moose-latest-dev/lastSuccessfulBuild/artifact/moose/*zip*/moose.zip >>> >>> >>> Feedback is always appreciated (including the negative one :)). You can >>> either reply by mail, or leave a comment online. >>> >>> Cheers, >>> Doru >>> >>> >>> -- >>> www.tudorgirba.com >>> >>> "Presenting is storytelling." >>> >>> >>> >>> >>> >> >> -- >> Lukas Renggli >> www.lukas-renggli.ch >> > > -- > www.tudorgirba.com > > "What is more important: To be happy, or to make happy?" > > > -- Lukas Renggli www.lukas-renggli.ch
