[aida] AIDASite class>>isOldEncoding:

Stefan Schmiedl s at xss.de
Thu May 31 23:15:44 CEST 2007


A few hours ago, I 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.

But there is a slight cosmetic problem, the name "Günter" is displayed
as "G?nter" with the special glyph that firefox uses for encoding
problems.

As an additional data point I added a WebText "Überstunden" (overtime)
which was printed correctly. Then I started to look at how VW/ODBC
handle different encodings. Then I noticed that "Jörg" was actually
printed as "Jörg"... what's happening here?

Good thing that the debugger can single step ... but even so it took me
a while to locate the culprit. isOldEncoding compares the character
codes against some values, of which $ü = 16r00FC is one, but $ö is not.
So "Jörg" is not considered "old encoding" and correctly converted,
while "Günter" is, hence is not.



Another minor hurdle is that in AIDA 5.2.2 from the VW store the demo
site registers itself for localhost, 127.0.0.1 port 80 and
stays there. While this site is registered, calls to 
AIDASite class>>newNamed: fail, since those are the default settings
used there and only one site per host is allowed.



Also I was a little bit stumped, when I added sorter buttons to my
table and was sent to the login page after clicking on them. You see, I
have taken the shortcut of allowing Guest access to the page I built,
but Guest has only read access, obviously by design. And it seems that
if Guest dares to try and change something (by clicking on a button),
he gets promptly punished by being sent out the door :-)

Logging in as admin, the buttons work as expected.



All things considered, the afternoon was well spent, and I'm looking
forward to the next time slice available for AIDA coding.

s.


More information about the Aida mailing list