Open Mikaela opened 10 years ago
Oh, and I reported this, because I saw push notification about highlight where I was told that this supports only French channels.
I am also surprised that Finnish and French aren't even fully supported by Latin1.
Reading the code, I don't seem to understand it at all. It looks like it only complains if detected encoding isn't ASCII or UTF-8.
if encoding not in ('utf-8', 'ascii'):
I thought that there are specified by hand French älphäbet chars.
I don't think I understand why does this only work with French channels?
It seems that after that push notification there was continuing talk and unsurity does it work even with French. I will keep this issue open, until @ProgVal confirms that it works.
It doesn't work.
This (HexChat spamming using latin1 shown from UTF-8 only WeeChat)
15:19:51 <@Ciblia> I �m n�w l�tin sp�mmer. (Temp�r�rily t� test N�Latin1)
15:19:55 <@Ciblia> I �m n�w l�tin sp�mmer. (Temp�r�rily t� test N�Latin1)
15:19:57 <@Ciblia> I �m n�w l�tin sp�mmer. (Temp�r�rily t� test N�Latin1)
15:19:59 <@Ciblia> I �m n�w l�tin sp�mmer. (Temp�r�rily t� test N�Latin1)
15:20:01 <@Ciblia> I �m n�w l�tin sp�mmer. (Temp�r�rily t� test N�Latin1)
15:20:07 <@Ciblia> M�ybe being identified �ffects it.
15:20:13 <@Ciblia> Checking l�gs...
Produces this.
method(irc, msg)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/plugins/NoLatin1/plugin.py", lin
e 63, in doPrivmsg
encoding = chardet.detect(content)['encoding']
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/chardet-2.2.1-py3.2.egg/chardet/__init__
.py", line 25, in detect
raise ValueError('Expected a bytes object, not a unicode object')
ValueError: Expected a bytes object, not a unicode object
ERROR 2014-04-14T15:19:57 supybot Exception id: 0x81b2e
ERROR 2014-04-14T15:19:59 supybot Uncaught exception in NoLatin1.__call__:
Traceback (most recent call last):
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/log.py", line 355, in m
return f(self, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/irclib.py", line 125, in __call_
_
method(irc, msg)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/plugins/NoLatin1/plugin.py", lin
e 63, in doPrivmsg
encoding = chardet.detect(content)['encoding']
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/chardet-2.2.1-py3.2.egg/chardet/__init__
.py", line 25, in detect
raise ValueError('Expected a bytes object, not a unicode object')
ValueError: Expected a bytes object, not a unicode object
ERROR 2014-04-14T15:19:59 supybot Exception id: 0x81b2e
ERROR 2014-04-14T15:20:01 supybot Uncaught exception in NoLatin1.__call__:
Traceback (most recent call last):
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/log.py", line 355, in m
return f(self, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/irclib.py", line 125, in __call_
_
method(irc, msg)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/plugins/NoLatin1/plugin.py", lin
e 63, in doPrivmsg
encoding = chardet.detect(content)['encoding']
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/chardet-2.2.1-py3.2.egg/chardet/__init__
.py", line 25, in detect
raise ValueError('Expected a bytes object, not a unicode object')
ValueError: Expected a bytes object, not a unicode object
ERROR 2014-04-14T15:20:01 supybot Exception id: 0x81b2e
ERROR 2014-04-14T15:20:07 supybot Uncaught exception in NoLatin1.__call__:
Traceback (most recent call last):
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/log.py", line 355, in m
return f(self, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/irclib.py", line 125, in __call_
_
method(irc, msg)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/plugins/NoLatin1/plugin.py", lin
e 63, in doPrivmsg
encoding = chardet.detect(content)['encoding']
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/chardet-2.2.1-py3.2.egg/chardet/__init__
.py", line 25, in detect
raise ValueError('Expected a bytes object, not a unicode object')
ValueError: Expected a bytes object, not a unicode object
ERROR 2014-04-14T15:20:07 supybot Exception id: 0x81b2e
ERROR 2014-04-14T15:20:13 supybot Uncaught exception in NoLatin1.__call__:
Traceback (most recent call last):
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/log.py", line 355, in m
return f(self, *args, **kwargs)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/irclib.py", line 125, in __call_
_
method(irc, msg)
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/supybot/plugins/NoLatin1/plugin.py", lin
e 63, in doPrivmsg
encoding = chardet.detect(content)['encoding']
File "/home/users/mkaysi/.local/lib/python3.2/site-packages/chardet-2.2.1-py3.2.egg/chardet/__init__
.py", line 25, in detect
raise ValueError('Expected a bytes object, not a unicode object')
ValueError: Expected a bytes object, not a unicode object
ERROR 2014-04-14T15:20:13 supybot Exception id: 0x81b2e
INFO 2014-04-14T15:20:32 supybot Flushers flushed and garbage collected.
my same problem
http://lakka.kapsi.fi:62291/weblogs/html/%23limnoria-bots/ http://i.hizliresim.com/p42dWN.png (here latin (turkish) charakter normal good)
http://i.hizliresim.com/GnGdy7.png ( here dont show turkish charakter) / this my bot
I believe you have a different issue.
Latin1 is wide-spread problem of at least copy-paste from Wikipedia:
With Finnish älphäbet our biggest issue is Ä and Ö and Å (ä and ö and å) which we share with Swedish.
Alternatively you could tell how to add support for languages as this plugin doesn't sound so complex.