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

	<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>2016-06-15T13:48:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[artaslove]]></name></author>
		<updated>2016-06-15T13:48:51-04:00</updated>

		<published>2016-06-15T13:48:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105172#p105172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105172#p105172"/>
		<title type="html"><![CDATA[UTF-8 input being garbled [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105172#p105172"><![CDATA[
I ended up getting the latest eggdrop 1.8 from github, which doesn't require the script above. <br><br>Everything is working well now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12631">artaslove</a> — Wed Jun 15, 2016 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[artaslove]]></name></author>
		<updated>2016-06-14T22:26:50-04:00</updated>

		<published>2016-06-14T22:26:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105170#p105170</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105170#p105170"/>
		<title type="html"><![CDATA[UTF-8 input being garbled [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105170#p105170"><![CDATA[
Upon further investigation, while the script posted above did solve the issue with utf-8 input being garbled, it introduced some other problems with utf-8 output that I am still working out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12631">artaslove</a> — Tue Jun 14, 2016 10:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[artaslove]]></name></author>
		<updated>2016-06-14T21:31:28-04:00</updated>

		<published>2016-06-14T21:31:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105169#p105169</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105169#p105169"/>
		<title type="html"><![CDATA[UTF-8 input being garbled [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105169#p105169"><![CDATA[
Solved by <a href="http://forum.egghelp.org/viewtopic.php?t=18879" class="postlink">http://forum.egghelp.org/viewtopic.php?t=18879</a><br><br>I was trying to use the solution at <a href="http://eggwiki.org/Bugs/Utf-8" class="postlink">http://eggwiki.org/Bugs/Utf-8</a> which did not work in my case.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12631">artaslove</a> — Tue Jun 14, 2016 9:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[artaslove]]></name></author>
		<updated>2016-06-14T21:32:28-04:00</updated>

		<published>2016-06-14T15:58:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105168#p105168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105168#p105168"/>
		<title type="html"><![CDATA[UTF-8 input being garbled [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105168#p105168"><![CDATA[
Hello, <br><br>I'm running eggdrop 1.8, patched to include UTF-8 support. My system LANG is set to UTF-8. My chat client supports UTF-8. The server I'm connecting to supports UTF-8. I have no troubles at all sending any sort of valid UTF-8 character to the channel my bot is connected to. <br><br>I have a simple script that connects to Microsoft translate and returns the translated result. It is working for many languages already. However when translating from Russian, Japanese, Chinese and possibly others it encounters a problem. <br><br>in my proc I experimented with "putlog $text" immediately at the beginning of the proc, where $text is everything the bot thinks the user has entered for that binding. <br><br>For example: <br><br>User enters: "!trans ru|en очень хорошо"<br>logfile shows: "ru|en &gt;G5=L E&gt;@&gt;H&gt;"<br><br>Naturally this does not work out to be the correct translation. <br><br>If I urlencode очень хорошо to %D0%BE%D1%87%D0%B5%D0%BD%D1%8C%20%D1%85%D0%BE%D1%80%D0%BE%D1%88%D0%BE and send it to the translator I get the expected result of "very well". <br><br>For some reason some UTF-8 characters work for example: <br>User enters: "!trans fr|en très bien"<br>logfile shows: "fr|en tr▒s bien"<br><br>However the character is correctly percent-encoded to %C8%A8 in that case and I get the expected result of "very well".  <br><br>Thanks for any insight.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12631">artaslove</a> — Tue Jun 14, 2016 3:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
