Subject: | Double encoding status (utf-8 charset) |
Date: | Wed, 17 Feb 2010 16:38:49 +0100 |
To: | bug-Net-Twitter [...] rt.cpan.org |
From: | numberxiii [...] free.fr |
Hi
I've encountered a charset problem with Net::Twitter::Lite.
On some systems, when I use oAuth authentication, the status was 'UTF-8 encoded'
twice. On other system, there is no double encoding.
The text of the status was already utf-8 encoded.
I resolved my issue by the following way :
$decodedStatus = Encode::decode(UTF-8″,$status)
(cf. http://www.social.com/main/twitter-oauth-using-perl/)
I don't understand why there is no problem on an Ubuntu distro and problem on a
Gentoo distro.
I found in the code the following line :
local $Net::OAuth::SKIP_UTF8_DOUBLE_ENCODE_CHECK = 1;
(http://github.com/semifor/net-twitter-lite/blob/master/src/net-twitter-lite.tt2,
line 281)
My configuration on both system :
Net::Twitter::Lite version is 0.08006
URI version is 1.52
On the gentoo system :
LWP::UserAgent version is 2.033
On the Ubuntu system:
LWP::UserAgent version is 5.829
Regards
numberxiii