<?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/18048" />

	<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>2010-10-03T07:58:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[FallFromGrace]]></name></author>
		<updated>2010-10-03T07:58:30-04:00</updated>

		<published>2010-10-03T07:58:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94629#p94629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94629#p94629"/>
		<title type="html"><![CDATA[Eggdrop + UTF8]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94629#p94629"><![CDATA[
Thanks. Bot prints "\u0414\u0416\u041A" correctly.<br><br>How can i convert my whole script to UTF8? I use UltaEdit, but i have already tried to convert it without any success.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10083">FallFromGrace</a> — Sun Oct 03, 2010 7:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2010-10-02T16:35:27-04:00</updated>

		<published>2010-10-02T16:35:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94618#p94618</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94618#p94618"/>
		<title type="html"><![CDATA[Eggdrop + UTF8]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94618#p94618"><![CDATA[
It sounds to me as if what you did there (the encoding convertfrom) is not a hack, it's the way to convert cp1251 into unicode (tcl is unicode internally), which will then be converted to system encoding (utf-8 if you modified according to that wiki). The problem is that what YOU typed there into that file, is not utf-8, it's cp1251, the file is cp1251 (saving it as utf-8 doesn't change that), because your characters are entered that way (your terminal/system encoding).<br><br>To rule out your issues of getting utf-8 stuff into a file you can use Tcls unicode character substitutes: set a "\u0414\u0416\u041A"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Sat Oct 02, 2010 4:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2010-10-02T16:26:50-04:00</updated>

		<published>2010-10-02T16:26:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94617#p94617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94617#p94617"/>
		<title type="html"><![CDATA[Eggdrop + UTF8]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94617#p94617"><![CDATA[
<blockquote class="uncited"><div> &lt;@tvrsh&gt; $$ encoding system<br> &lt;+bionic&gt; OK: utf-8 - 0.042 ms.<br> &lt;@tvrsh&gt; $$ $::version<br> &lt;+bionic&gt; Error: invalid command name "1.6.20 1062000" - 1.071 ms.<br> &lt;@tvrsh&gt; $$ set mes "дадада"; putquick "PRIVMSG $chan :\001ACTION $mes"<br> * +bionic дадада</div></blockquote>Maybe you neednt use <a href="http://eggwiki.org/Utf-8" class="postlink">http://eggwiki.org/Utf-8</a> with 1.6.20?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Sat Oct 02, 2010 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FallFromGrace]]></name></author>
		<updated>2010-10-02T14:37:40-04:00</updated>

		<published>2010-10-02T14:37:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94616#p94616</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94616#p94616"/>
		<title type="html"><![CDATA[Eggdrop + UTF8]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94616#p94616"><![CDATA[
I have downloaded Eggdrop 1.6.20. <br><br>Then I have extracted it, and modified main.h and tcl.c: <a href="http://eggwiki.org/Utf-8" class="postlink">http://eggwiki.org/Utf-8</a><br><br>Then I have compiled and installed it. <br><br>But when i try to use unicode:<blockquote class="uncited"><div>set mes "дадада"<br>putquick "PRIVMSG $chan :\001ACTION $mes"</div></blockquote>it says something in wrong codepage (cp1251). <br><br>I have found a way to fix it, but i think it's just a hack, not a solution:<blockquote class="uncited"><div># it works<br>set mes "дадада"<br>set mes [encoding convertfrom cp1251 $mes]<br>putquick "PRIVMSG $chan :\001ACTION $mes"</div></blockquote>I tried to save my script.tcl file in UTF8 codepage. It didn't help..<br>I tried to set 'encoding system utf-8", but it didnt work neither<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10083">FallFromGrace</a> — Sat Oct 02, 2010 2:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
