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.

non-latin letters

Old posts that have not been replied to for several years.
Locked
C
COOLY
Voice
Posts: 14
Joined: Sun Feb 24, 2002 8:00 pm

non-latin letters

Post by COOLY »

I have been using alot of tcls, but one main problem is always facing me which is using letters that are not latin (i use arabic). These letters are always not desplayed correctly which made the script not running well, such as trivia.( i am dying to run this script in arabic)
any suggestions? or have anyone expreinced it? plz help me :roll:
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

What encoding are you using for the files with arabic content?
What locale are you using on the shell your eggdrop is running from?
C
COOLY
Voice
Posts: 14
Joined: Sun Feb 24, 2002 8:00 pm

Post by COOLY »

Thanx for responding
well, i didn't understand what u mean by encoding and locale. Sorry i am a newbie :oops:
C
COOLY
Voice
Posts: 14
Joined: Sun Feb 24, 2002 8:00 pm

Post by COOLY »

any hints? :-?
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Encoding = utf-8, utf-16, ascii, iso-8559-1 (western), etc. In other words, what "character set" are you using?
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Well on mozilla it looks like arabic is set as iso-8859-6, so that's probably what you're using. One suggestion I have is to make the script read the file in binary mode (use fconfigure).
C
COOLY
Voice
Posts: 14
Joined: Sun Feb 24, 2002 8:00 pm

Post by COOLY »

Yeah Its ISO 8859-6
Could u give me an example in of how to put it in a script?
Locked