Skip Menu |

This queue is for tickets about the WWW-Google-Contacts CPAN distribution.

Report information
The Basics
Id: 88339
Status: resolved
Priority: 0/
Queue: WWW-Google-Contacts

People
Owner: MERIXZON [...] cpan.org
Requestors: leva [...] ecentrum.hu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.37



Subject: Double UTF-8 encoding in values
Date: Mon, 2 Sep 2013 15:48:30 +0200
To: bug-WWW-Google-Contacts [...] rt.cpan.org
From: LEVAI Daniel <leva [...] ecentrum.hu>
Hi! Somehow I get results looking like if they were encoded twice to UTF-8, and indeed, when I decode them with Encode::decode("utf8", $value); the values are correctly displayed. I'm using perl 5.18.0, and WWW-Google-Contacts 0.36.
Hi Daniel Thanks for this bug report. I'll look into this soon. best regards Magnus On Mon Sep 02 09:48:50 2013, daniell wrote: Show quoted text
> Hi! > > Somehow I get results looking like if they were encoded twice to UTF-8, > and indeed, when I decode them with Encode::decode("utf8", $value); the > values are correctly displayed. I'm using perl 5.18.0, and > WWW-Google-Contacts 0.36.
Hi Daniel I've just uploaded version 0.37 to CPAN, should reach your local mirror shortly. Please let me know if this solves your issue. cheers Magnus
Subject: Re: [rt.cpan.org #88339] Double UTF-8 encoding in values
Date: Thu, 5 Sep 2013 10:32:32 +0200
To: Magnus Erixzon via RT <bug-WWW-Google-Contacts [...] rt.cpan.org>
From: LEVAI Daniel <leva [...] ecentrum.hu>
On sze, szept 04, 2013 at 13:14:38 -0400, Magnus Erixzon via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=88339 > > > Hi Daniel > > I've just uploaded version 0.37 to CPAN, should reach your local mirror shortly. > Please let me know if this solves your issue.
Not sure if this indeed fixes the issue. It surely alters it :) Now the output seems to be decoded from UTF-8, but furthermore the encoding varies across the attributes. When doing a test lookup with one contact who only had its name and email attributes set, the output was latin2. With another contact, who had its name, email and organization name/title set, the output was mixed: the name/email was latin2, but the org. attributes were "Non-ISO extended-ASCII text", as identified by file(1). My locale is set to UTF-8: LANG=en_US.UTF-8 LC_CTYPE=hu_HU.UTF-8 LC_NUMERIC=hu_HU.UTF-8 LC_TIME=hu_HU.UTF-8 LC_COLLATE=hu_HU.UTF-8 LC_MONETARY=hu_HU.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=hu_HU.UTF-8 LC_NAME=hu_HU.UTF-8 LC_ADDRESS=hu_HU.UTF-8 LC_TELEPHONE=hu_HU.UTF-8 LC_MEASUREMENT=hu_HU.UTF-8 LC_IDENTIFICATION=hu_HU.UTF-8 LC_ALL= I think it would be rather convenient, if the output was UTF-8 encoded all around. Btw, I could've tested it from the git repo., you don't need to release a new version if it only should get tested ;) Thanks, Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Hi Sorry about the delay. Would you mind emailing me at magnus@erixzon.com and we can sort this out via email? cheers Magnus On Thu Sep 05 04:32:55 2013, daniell wrote: Show quoted text
> On sze, szept 04, 2013 at 13:14:38 -0400, Magnus Erixzon via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=88339 > > > > > Hi Daniel > > > > I've just uploaded version 0.37 to CPAN, should reach your local > > mirror shortly. > > Please let me know if this solves your issue.
> > Not sure if this indeed fixes the issue. It surely alters it :) > Now the output seems to be decoded from UTF-8, but furthermore the > encoding varies across the attributes. > When doing a test lookup with one contact who only had its name and > email attributes set, the output was latin2. With another contact, who > had its name, email and organization name/title set, the output was > mixed: the name/email was latin2, but the org. attributes were > "Non-ISO extended-ASCII text", as identified by file(1). > My locale is set to UTF-8: > LANG=en_US.UTF-8 > LC_CTYPE=hu_HU.UTF-8 > LC_NUMERIC=hu_HU.UTF-8 > LC_TIME=hu_HU.UTF-8 > LC_COLLATE=hu_HU.UTF-8 > LC_MONETARY=hu_HU.UTF-8 > LC_MESSAGES=en_US.UTF-8 > LC_PAPER=hu_HU.UTF-8 > LC_NAME=hu_HU.UTF-8 > LC_ADDRESS=hu_HU.UTF-8 > LC_TELEPHONE=hu_HU.UTF-8 > LC_MEASUREMENT=hu_HU.UTF-8 > LC_IDENTIFICATION=hu_HU.UTF-8 > LC_ALL= > > I think it would be rather convenient, if the output was UTF-8 encoded > all around. > > > Btw, I could've tested it from the git repo., you don't need to > release a > new version if it only should get tested ;) > > > Thanks, > Daniel
Subject: Re: [rt.cpan.org #88339] Double UTF-8 encoding in values
Date: Thu, 19 Sep 2013 21:55:40 +0200
To: bug-WWW-Google-Contacts [...] rt.cpan.org
From: LEVAI Daniel <leva [...] ecentrum.hu>
User error; it was my misuse of Perl and UTF-8. The module works perfectly. Discussed with Magnus (maintainer). Sorry for the noise. Daniel
Thanks Daniel Closing this ticket now. /m