This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Problems with special nordic characters.

Old posts that have not been replied to for several years.
Locked
A
Alpha
Voice
Posts: 15
Joined: Sat Nov 27, 2004 12:27 am
Location: Tromsø, Norway
Contact:

Problems with special nordic characters.

Post by Alpha »

I have trubles with special norwegian characters. The bot is ordered to join #Tromsø in the config-file, but ends up in #TromsÃ. If I do a ".+chan #Tromsø", the bot joins as it should. But whenever the bot is restarted it won't join again.

I've come across this before but I can't remember the workaround. Any ideas?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

put this in your config (before loading channels module):

Code: Select all

encoding system cp865
A
Alpha
Voice
Posts: 15
Joined: Sat Nov 27, 2004 12:27 am
Location: Tromsø, Norway
Contact:

Post by Alpha »

Didnt work... :(


Also tried utf-8 and iso8859-1, made no difference.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

then find out which encoding is used by your editor - the one you use to edit eggdrop.conf - and use that as argument of [encoding system]
A
Alpha
Voice
Posts: 15
Joined: Sat Nov 27, 2004 12:27 am
Location: Tromsø, Norway
Contact:

Post by Alpha »

Shouldn't matter, I copied the file directly from another eggdrop install made earlier today. Used ASCII ftp-transfer. And the other eggrdrop runs fine without any encoding system-entry in the configfile.

Used a fresh install of Joe to edit both files.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

the thing that actually matters is operating system's locale; your new host obviously has different locale set than the old one, so you need to find out what the old locale is and use that in [encoding system]
A
Alpha
Voice
Posts: 15
Joined: Sat Nov 27, 2004 12:27 am
Location: Tromsø, Norway
Contact:

Post by Alpha »

I've allready tried doing a "export LANG=no_NO" which is Norwegian. Still the same result in eggdrop, but at least the "ø" is displayed correctly in joe.. :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

eggdrop (actually Tcl) doesn't care about exported LANG and operating system's locale; it needs to be told explicitly which encoding should be used when translating external strings to its internal unicode representation
Locked