<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/20333" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2017-05-12T19:26:08-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/20333</id>

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-05-12T19:26:08-04:00</updated>

		<published>2017-05-12T19:26:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106257#p106257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106257#p106257"/>
		<title type="html"><![CDATA[Re: Eggdrop vers 1.8x problems with ascii and latin characte]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106257#p106257"><![CDATA[
Ok, thanks ! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Fri May 12, 2017 7:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2017-05-12T11:48:48-04:00</updated>

		<published>2017-05-12T11:48:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106256#p106256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106256#p106256"/>
		<title type="html"><![CDATA[Re: Eggdrop vers 1.8x problems with ascii and latin characte]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106256#p106256"><![CDATA[
<blockquote class="uncited"><div>With versions 1.8x I can not solve it because:<br>1) Binaries are different from those published in the wiki solution, and I do not know what to modify and where.<br>2) Using the <span style="color:green">[encoding convertfrom utf-8]</span> function nothing happens.<br><br>Examples of what is bad displayed:<blockquote class="uncited"><div>MyBoT: Â«Â» The song Â«Â» Cristian Castro - Buenos DÃ­-as Amor  </div></blockquote>When it should be showed like this:<blockquote class="uncited"><div>MyBoT: «» The song «» Cristian Castro - Buenos Días Amor  </div></blockquote>Anyone have any solutions to these problems?</div></blockquote>Hello,<br><br>You should edit the tcl.c file (located in eggdrop-1.8.x/src) find this: <div class="codebox"><p>Code: </p><pre><code>if (encoding == NULL) {    encoding = "iso8859-1";  }</code></pre></div>And add the utf-8 coding. <div class="codebox"><p>Code: </p><pre><code>if (encoding == NULL) {    encoding = "iso8859-1";    encoding = "utf-8";  }</code></pre></div>Recompile and install the bot! I hope this solves your problem! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Good luck!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12672">m4s</a> — Fri May 12, 2017 11:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-04-24T14:34:01-04:00</updated>

		<published>2017-04-24T14:34:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106191#p106191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106191#p106191"/>
		<title type="html"><![CDATA[Eggdrop vers 1.8x problems with ascii and latin characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106191#p106191"><![CDATA[
<blockquote class="uncited"><div>There are a lot of potential problem sources in this. Where are you getting the data from originally? If it's a script can you pastebin it somewhere or here?</div></blockquote>I get the data per socket from the Shoutcast website, see <a href="http://forum.egghelp.org/viewtopic.php?t=18520" class="postlink"> Shoutcast TCL by domsen</a>.<br><br>The name of the song is stored in the <span style="color:blue">cursong</span> variable.<br><br>As the data is not well coded in that web, I solve it with these commands:<div class="codebox"><p>Code: </p><pre><code>regsub -all "{" $cursong "" cursongregsub -all "}" $cursong "" cursongregsub -all "Ñ" $cursong "Ñ" cursongregsub -all "Ó" $cursong "Ó" cursongregsub -all "Ú" $cursong "Ú" cursongregsub -all "á" $cursong "á" cursongregsub -all "é" $cursong "é" cursongregsub -all "í" $cursong "í" cursongregsub -all "ó" $cursong "ó" cursongregsub -all "ú" $cursong "ú" cursongregsub -all "ñ" $cursong "ñ" cursongregsub -all "±" $cursong "ñ" cursongregsub -all "ç" $cursong "ç" cursongregsub -all " " $cursong "à" cursongregsub -all "¡" $cursong "á" cursongregsub -all "¢" $cursong "â" cursongregsub -all "£" $cursong "ã" cursongmore ..... more .......</code></pre></div>I know these commands are obsolete (deprecated) in new versions and I would have to use something like:<div class="codebox"><p>Code: </p><pre><code>set cursong [string map [list "Ñ" Ñ "Ó" Ó "Ú" Ú......... more....more......] $cursong]</code></pre></div><br>But I do not want to modify all my codes and recompile everything if I'm not 100% sure that I'll work fine coding for ascii characters and Latin accents.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon Apr 24, 2017 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2017-04-23T19:24:34-04:00</updated>

		<published>2017-04-23T19:24:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106185#p106185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106185#p106185"/>
		<title type="html"><![CDATA[Eggdrop vers 1.8x problems with ascii and latin characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106185#p106185"><![CDATA[
There are a lot of potential problem sources in this. Where are you getting the data from originally? If it's a script can you pastebin it somewhere or here?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Sun Apr 23, 2017 7:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-04-23T13:41:10-04:00</updated>

		<published>2017-04-23T13:41:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106184#p106184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106184#p106184"/>
		<title type="html"><![CDATA[Eggdrop vers 1.8x problems with ascii and latin characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106184#p106184"><![CDATA[
<blockquote class="uncited"><div>try running 1.8 wich has utf-8 fixed</div></blockquote>I tried it with all 1.8 versions and the results were the ones I showed previously.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 23, 2017 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-04-22T10:27:43-04:00</updated>

		<published>2017-04-22T10:27:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106179#p106179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106179#p106179"/>
		<title type="html"><![CDATA[Eggdrop vers 1.8x problems with ascii and latin characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106179#p106179"><![CDATA[
try running 1.8 wich has utf-8 fixed<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Apr 22, 2017 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-04-22T06:14:48-04:00</updated>

		<published>2017-04-22T06:14:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106175#p106175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106175#p106175"/>
		<title type="html"><![CDATA[Eggdrop vers 1.8x problems with ascii and latin characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106175#p106175"><![CDATA[
Currently I use:<blockquote class="uncited"><div>Eggdrop v1.6.21, Configured with: '--with-handlen = 32'<br>Tcl library: /usr/share/tcl8.5<br>Tcl version: 8.5.13 (header version 8.5.13)<br>OS: Linux 3.10.23-xxxx-std-ipv6-64-vps<br>Tcl is threaded.</div></blockquote>How did I solved so that the ascii characters, latin accents, and the Ñ ñ letters could be visualized?<br>1) Modifying the binaries, see <a href="http://eggwiki.org/Utf-8" class="postlink">Bugs/Utf-8</a><br>2) Using the function <span style="color:green">[encoding convertfrom utf-8]</span><br>like this: set goodtext [encoding convertfrom utf-8 "$latintext"]<br><br>With versions 1.8x I can not solve it because:<br>1) Binaries are different from those published in the wiki solution, and I do not know what to modify and where.<br>2) Using the <span style="color:green">[encoding convertfrom utf-8]</span> function nothing happens.<br><br>Examples of what is bad displayed:<blockquote class="uncited"><div>MyBoT: Â«Â» The song Â«Â» Cristian Castro - Buenos DÃ­-as Amor  </div></blockquote>When it should be showed like this:<blockquote class="uncited"><div>MyBoT: «» The song «» Cristian Castro - Buenos Días Amor  </div></blockquote>Anyone have any solutions to these problems?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sat Apr 22, 2017 6:14 am</p><hr />
]]></content>
	</entry>
	</feed>
