Page 1 of 1

Adium&Tiger + AIM&Windows = problem with encoding?

Posted: Thu Oct 20, 2005 9:06 pm
by Sans
I'm not sure if it's a bug, or I'm missing something obvious, so I decided to post it here first.

I'm experiencing following problem. When I trying to chat in Adium(0.85) on Tiger(10.4.2) with my buddies who uses AIM on Windows in Russian, then it looks like they receive my messages in worng encoding (something like Western ISO) so it is unreadable. Their messages to me appeared correctly in Adium. I'm pretty sure this is not the problem with set up of AIM on Windows site, as chatting in Russian in iChat on the same machine does not have this problem. Also, chat is going OK with the same version of Adium running on Panther(10.3.9). I believe that Adium settings on Panther and Tiger are the same. Anybody having this problem? Any suggestion how to fix it? Please help! :cry:

Posted: Fri Oct 21, 2005 6:13 am
by sopu
I have a similar problem, i get wired symbols when an icq-contact sends me messages including the german "ä", "ö", ... or "ß". I tried to change the encoding in the preferences, but I coudn't find a correct encoding (no UTF8??)

With msn everything works just fine.

Any ideas?

Posted: Fri Oct 21, 2005 12:19 pm
by evands
Using ICQ?

Posted: Fri Oct 21, 2005 12:25 pm
by sopu
oh sorry, forgot to tell ... Yes, I use icq ...

Posted: Fri Oct 21, 2005 3:49 pm
by Sans
evands wrote:Using ICQ?
In my case AIM on both sides.

Posted: Fri Oct 21, 2005 5:14 pm
by evands
So to summarize, Sans, you're going AIM to AIM and:
Working: iChat to AIM for Windows, Adium in 10.3.x to AIM for windows
Invalid: Adium in 10.4 to AIM for windows

I know of no differences between encoding on the two platforms. Please try http://escamuel.org/Adium-85.1.prelim.debug.app.zip and paste the output from the Adium->Debug Window window when sending such Russian IMs. Please do this for both 10.3.x and 10.4.

Posted: Fri Oct 21, 2005 8:44 pm
by Sans
So to summarize, Sans, you're going AIM to AIM and:
Working: iChat to AIM for Windows, Adium in 10.3.x to AIM for windows
Invalid: Adium in 10.4 to AIM for windows
Yes, correct.
evands wrote:Please try http://escamuel.org/Adium-85.1.prelim.debug.app.zip and paste the output from the Adium->Debug Window window when sending such Russian IMs. Please do this for both 10.3.x and 10.4.
Here we go:

Tiger:

Code: Select all

gaim openChat:<AIChat: 0x4e5ca50>:AIM.sansathp for AIM.sansathp
adiumGaimConvWindowAddConv
adiumGaimConvWindowShow
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
Sending <HTML>??????</HTML> from <ESGaimAIMAccount: 0x403b3e0>:2:sansayk to <AIChat: 0x4e5ca50>:AIM.sansathp
Should update fingerprints list
objectsBeingReceived: (empty)
(Libgaim: oscar) Claiming to have a buddy icon
(Libgaim: oscar) Sending IM, charset=0x0002, charsubset=0x0000, length=38
(Libgaim: oscar) Sent message to SansAtHP.
Sending <HTML>??? ???? ?????? ??–??????</HTML> from <ESGaimAIMAccount: 0x403b3e0>:2:sansayk to <AIChat: 0x4e5ca50>:AIM.sansathp
(Libgaim: oscar) Sending IM, charset=0x0002, charsubset=0x0000, length=76
objectsBeingReceived: (empty)
(Libgaim: oscar) Sent message to SansAtHP.
objectsBeingReceived: (empty)
(Libgaim: oscar) Empty encoding, assuming UTF-8
(Libgaim: oscar) Sans AYK 0: incomingim_ch1: unknown TLV 0x000d (len 20)
(Libgaim: oscar) Recived IM from SansAtHP with 1 parts
(Libgaim: oscar) SansAtHP has an icon
(Libgaim: oscar) Parsing IM part, charset=0x0002, charsubset=0x0000, datalen=168
adiumGaimConvWriteIm: Received <HTML><BODY BGCOLOR="#ffffff"><FONT LANG="32">??????? ?????????</FONT></BODY></HTML> from sansathp
objectsBeingReceived: (empty)
Panther:

Code: Select all

gaim openChat:<AIChat: 0x5b19dc0>:AIM.sansathp for AIM.sansathp
adiumGaimConvWindowAddConv
adiumGaimConvWindowShow
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
objectsBeingReceived: (empty)
Sending <HTML><FONT FACE="Lucida Grande" ABSZ="12" SIZE="3">??????</FONT></HTML> from <ESGaimAIMAccount: 0x5833a50>:2:sansayk to <AIChat: 0x5b19dc0>:AIM.sansathp
Should update fingerprints list
objectsBeingReceived: (empty)
(Libgaim: oscar) Claiming to have a buddy icon
(Libgaim: oscar) Sending IM, charset=0x0002, charsubset=0x0000, length=144
(Libgaim: oscar) Sent message to SansAtHP.
(Libgaim: oscar) no more icons to request
Sending <HTML><FONT FACE="Lucida Grande" ABSZ="12" SIZE="3">??? ???? ?????? ??–??????</FONT></HTML> from <ESGaimAIMAccount: 0x5833a50>:2:sansayk to <AIChat: 0x5b19dc0>:AIM.sansathp
(Libgaim: oscar) Sending IM, charset=0x0002, charsubset=0x0000, length=182
objectsBeingReceived: (empty)
(Libgaim: oscar) Sent message to SansAtHP.
(Libgaim: oscar) Sans AYK 0: incomingim_ch1: unknown TLV 0x000d (len 20)
(Libgaim: oscar) Recived IM from SansAtHP with 1 parts
(Libgaim: oscar) SansAtHP has an icon
(Libgaim: oscar) Parsing IM part, charset=0x0002, charsubset=0x0000, datalen=168
adiumGaimConvWriteIm: Received <HTML><BODY BGCOLOR="#ffffff"><FONT LANG="32">??????? ?????????</FONT></BODY></HTML> from sansathp
objectsBeingReceived: (empty)
Russian appears in logs gorrectly, replaced with ??? only when posted here.

As I can see, on Tiger string is not enclosed in FONT tag. Could this be the problem? Is it something controllable from the preferences (or templates)? Also, on both Panther and Tiger I use same style "iStyle".

If you need full logs, I can send them as e-mail or some other way, as IMO they are too lengthy to paste here.

Posted: Sat Oct 22, 2005 4:44 am
by evands
Interesting. Could you try sending in a different font in Tiger?

Posted: Sat Oct 22, 2005 7:06 pm
by Sans
evands wrote:Interesting. Could you try sending in a different font in Tiger?
Hmm... :? Looks like I can't change font on the input line. (Did not noticed it before, because never used to change font). Also bold and italic styles does not work from menu. Underlined style works, inserts tags into sent string, but this does not help.

On the input line font is always set to Helvetica. When I select something already typed, and try to change font, it displays different font in font dialog, but stays the same in the input line. When I start to type again, it changes font in the font dialog back to Helvetica. Weird. :shock:

All this seems to work on the Panther correctly.

Posted: Sat Oct 22, 2005 7:54 pm
by Sans
After discovery that I can't change fonts, decided to try clean sweep, to see maybe my preferences got screwed up somehow. Here is results:

After clean launch, it does not work the same way as it did before. BUT, now it allows me to change the fonts, AND, when I change font to anything but Helvetica 12, (even if I just switch size to, lets say, 18 ) it puts <FONT> tags in sent message and all displayed ok on Windows side. As soon as I switch back to Helvetica 12 it removes <FONT> tags and message looses encoding on the windows side.

Anyway, now I got the fix for my problem and I'm happy again. :lol:

Thanks for trying to help, evands!

Posted: Sat Oct 22, 2005 8:49 pm
by Sans
Hmm... As it turned out, inability to change the font for the input line had nothing to do with corrupt preferences. If I go to the message style preferences, and try to use font panel there (not even changing font, just open and close), after that I unable to change font for the input line. Ability to change it restored after Adium relaunch, again, up until I try to use font pane from the preferences. Now, this looks like real bug. Should I report it?