collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Cyrillic... again ;)  (Read 2741 times)

0 Members and 1 Guest are viewing this topic.

Offline iComa

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Cyrillic... again ;)
« on: July 06, 2010, 08:26:36 pm »
Hi all =) I need to know, what can i do to relay non-latin symbols from guest chat to GC and back, where someone writing cyrillic symbols i see ???? ???? ? ??? something like that. When 2 characters in  guest group,  both can see cyrillic symbols, but when one of them just in private group, i see ???????? symblos.
« Last Edit: July 06, 2010, 08:30:04 pm by iComa »
Whitecoma

Offline iComa

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Cyrillic... again ;)
« Reply #1 on: July 09, 2010, 05:05:36 pm »
Can anyone answer me?  :)
Whitecoma

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Cyrillic... again ;)
« Reply #2 on: July 09, 2010, 06:09:22 pm »
This has been mentioned before elsewhere on the forum, but I'll restate it.

The problem lies with the fact that AO and AoC use UTF8.

PHP however does not offer full UTF8 handling. Ie string functions that count characters will break etc since characters in Unicode is represented with multiple characters amongst other problems.

As such we use the built in PHP function utf8_encode/decode which converts to ISO-8859-1 before the bot handles anything, and then back into UTF8 when anything is sent. This in turn will break for numerous special case latin languages as well as cyrillic, hebrew and arabic and so on.

This problem won't really be solved properly until PHP 6 is released.

In the meantime a workaround was posted a while ago which allows the bot to handle cyrillic without the need for the iconv library to be installed:
http://bebot.link/bebot-0-2-support/iconv/msg3927/#msg3927

BeBot Founder and Fixer Kingpin

Offline iComa

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Cyrillic... again ;)
« Reply #3 on: July 09, 2010, 07:16:29 pm »
tyvm ;)
Whitecoma

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 705
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal