[aida] AIDASite class>>isOldEncoding:

Stefan Schmiedl s at xss.de
Fri Jun 1 12:51:06 CEST 2007


On Fri, 01 Jun 2007 11:26:09 +0200
Janko Mivšek <janko.mivsek at eranova.si> wrote:

> Hi Stefan,
> 
> Stefan Schmiedl wrote:
>   >> I spent a few hours on my project today, and all I can say is
>   >> that
> >> AIDASite class>>isOldEncoding: is *evil* if you feed it German
> >> text. More on this in a separate post later.
> > 
> > After I managed to find my way around the EXDI for ODBC, I had a
> > list of employees on my hands, which should be displayed in a
> > table. So I follow the approach of the tutorial. The list comes up
> > on the first try. Good.
> 
> And you probably already take care that you convert to pure Unicode
> from your database into Smalltalk objects?

Actually, no :-)

During debugging I saw that I get the usual windows encoding from the
database, 1250 or 1252 or whatever it is for western europe.

> Solution:
> 
> Just delete first line in method
> AIDASite class>>convert:toCodepage:
> 
> (self inOldEncoding: aString) ifTrue: [^self oldconvert: aString 
> toCodepage: aSymbol].

did so already, display worked fine after that :-)

s.


More information about the Aida mailing list