This is what I get after compilling the bot with utf support:
Here is an example, my utf works great on urban dict:
Code: Select all
(10:21:05) <@spithash> !ud █▄ █▄█ █▄ ▀█▄
(10:21:07) <@nagger> [1/1] a corruption of lulz. seen on encyclopedia dramatica. (i did it for the █▄ █▄█ █▄ ▀█▄)
(10:21:28) <@spithash> !w arabic fonts
(10:21:30) <@nagger> Wikipedia Error: No html to parse.
(10:21:33) <@spithash> !w arabic fonts
(10:21:37) <@nagger> Wikipedia Error: Sorry, no search results found.
(10:21:46) <@spithash> !w arabic fonts
(10:21:48) <@nagger> Wikipedia Error: No html to parse.
(10:21:53) <@spithash> !w arabic fonts
(10:21:55) <@nagger> Wikipedia Error: No html to parse.
(10:22:02) <@spithash> !w arabic fonts
(10:22:08) <@nagger> Arabic alphabet | The Arabic alphabet (Arabic: أبجدÙJØ© عربÙJØ©â@N â@Yabjadiyyah â@Xarabiyyah) or Arabic abjad is the script used for writing several languages of Asia and Africa, such as Arabic and Urdu. After the Latin alphabet, it is the second-most widely used alphabet around the world. The alphabet was first used to write texts in Arabic, most notably the Qurʼan, the holy book of Islam. With the spread of I
(10:22:09) <@nagger> came to be used to write many languages of many language families including, at various times, Persian, Urdu, Pashto, Baloch, Malay; Fulfulde-Pular, Hausa, and Mandinka (all in West Africa); Swahili (in East Africa); Brahui (in Pakistan); Kashmiri, Sindhi, Balti, and Panjabi (in Pakistan); Arwi (in Sri @ http://en.wikipedia.org/wiki/Arabic_alphabet
but on the google script, it malfunctions plus I get no
bolding
speechles wrote:
That isn't required EXCEPT on FreeBSD because it fails to set environments correctly and requires all these switches to compile correctly. Rarely does anyone set these flags correctly when compiling so their environment IS utf-8, but their eggdrop THINKS it's iso8859-1. Commenting out that line above fixes this issue. But it is more of a hack than it is a fix. Compiling your bot correctly, and getting your environment and eggdrop to BOTH be utf-8 is what is expected. Anything less you're going to have to hack.
what exactly isn't required?
EDIT:
OK FIXED
This was needed ^
Code: Select all
(12:03:50) <@spithash> !w zante
(12:03:55) <@nagger> Zakynthos | Zakynthos [ˈzakinθos] ( listen), also Zante, the other form often used in English and in Italian (Greek: Ζάκυνθος; Venetian: Zacinto), is the third largest of the Ionian Islands. It covers an area of 410 km^2 (158 sq mi) and its coastline is roughly 123 km (76 mi) in length. The island is named after Zakynthos,
the son of a legendary Arcadian chief Dardanus. The name, like all similar names ending in -nthos, is
(12:03:56) <@nagger> pre-Mycenaean or Pelasgian in origin. Zakynthos has a thriving tourism industry. @ http://en.wikipedia.org/wiki/Zakynthos
(12:04:37) <@spithash> !w arabic fonts
(12:04:43) <@nagger> Arabic alphabet | The Arabic alphabet (Arabic: أبجدية عربية ’abjadiyyah ‘arabiyyah) or Arabic abjad is the script used for writing several languages of Asia and Africa, such as Arabic and Urdu. After the Latin alphabet, it is the second-most widely used alphabet around the world. The alphabet was first used to write texts in Arabic, most notably the Qurʼan, the holy book of Islam. With the spread of Islam, it came to be used to
(12:04:44) <@nagger> write many languages of many language families including, at various times, Persian, Urdu, Pashto,
Baloch, Malay; Fulfulde-Pular, Hausa, and Mandinka (all in West Africa); Swahili (in East Africa); Brahui (in
Pakistan); Kashmiri, Sindhi, Balti, and Panjabi (in Pakistan); Arwi (in Sri Lanka and Souther @
http://en.wikipedia.org/wiki/Arabic_alphabet
now the only thing it fails to do when the bot is UTF compilled, is
bolding
I guess the "No html to parse." and "Sorry, no search results found." is a matter of timeout from the server
but the most important thing is that if it does that for more than 3 or 4 times straight, the bot will ping timeout.. and then you have to restart it cause it will never come back. Any thoughts about this malfunction ?