Re: Re: [uf-discuss] A bug in the Technorati's events exporting tool
hmm... 1) I'll look into the UTF-8 issue, Your server is NOT sending any language encoding: HTTP/1.1 200 OK Date: Tue, 26 Sep 2006 12:02:13 GMT Server: Apache Transfer-Encoding: chunked Content-Type: text/html so i might be assuming it as UTF-8? when i run your code through the W3C tidy, they are NOT finding any encoding so it defaults to ?xml version=1.0 encoding=iso-8859-1? That might be why there are characters incorrectly encoded. Do you expect UTF-8 or ISO-8859-1? As for the incorrect dtend: i couldn't find your example in your HTML, so i can't verify the error. Can you point to an example you know is incorrect so i can check it? The one on the 24th: abbr class=dtend title=2006-09-24T02:00:00+02:0002:00/abbr converts to: DTEND:20060924T00Z which is correct. Thanks, -brian x2v add serious bug with utf-8 (that technorati doesn't have) and now the hours are false, not buggy but simply false. this: abbr class=dtend title=2006-09-30T02:00:00+02:00.../abbr becomes: DTEND:20060930T02Z It's obviously false because: Z is UTC +02:00 is CEST so 2am (CEST) can't be 2am (Z) http://suda.co.uk/projects/X2V/get-vcal.php?uri=http://www.bikinitest.ch/agenda/2006/09/ Thanks for you work -- Yoan -brian [1] - http://hg.microformats.org/x2v?fd=753da7c7d63c;file=datetime.xsl On 9/25/06, Yoan BLANC [EMAIL PROTECTED] wrote: Hi, I've hCal'd a website that contains with this kind of dtend : abbr class=dtend title=2006-09-24T02:00:00+02:00.../abbr and feeds.technorati.com/events/ convert it to DTEND:20060924T000Z with se7en 0 instead of six. Test it from there : http://feeds.technorati.com/events/http://www.bikinitest.ch/agenda/2006/09/ Cheers, -- Yoan Blanc ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss -- brian suda http://suda.co.uk ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss
Re: Re: [uf-discuss] A bug in the Technorati's events exporting tool
On 9/26/06, Yoan BLANC [EMAIL PROTECTED] wrote: Do you prefer if I send a Content-Type: text/html; charset=iso-8859-1 It's much a matter of your tool. Technorati deals with this page correctly (except with the dates) so why x2v cannot, strange no? I'll look into this now that i know you want it to be iso-8859-1. The technorati service and my site are running the same XSLT. To actually execute the transform you need something else. In my case, i am using PHP, i don't know what technorati uses to call the XML and XSLT. Since the XSLT can't detect the HTTP Header mimeType that needs to be passed in from the executing code (in my case PHP, where i have it wrong). I won't go too much technical detail on the discuss list, you can email me off list for a complete explaination and how the W3C defines the order of where to look for language encodings, etc. -brian -- brian suda http://suda.co.uk ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss
Re: [uf-discuss] A bug in the Technorati's events exporting tool
Brian Suda wrote: On 9/26/06, Yoan BLANC [EMAIL PROTECTED] wrote: Do you prefer if I send a Content-Type: text/html; charset=iso-8859-1 It's much a matter of your tool. Technorati deals with this page correctly (except with the dates) so why x2v cannot, strange no? I'll look into this now that i know you want it to be iso-8859-1. I just want it to be an usable .ics. Good utf-8 or good iso-8859-1. I'll use the technorati service so if the date with a positive timezone problem is fixed I don't bother. Thanks for your work, Yoan ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss
Re: [uf-discuss] A bug in the Technorati's events exporting tool
On Sep 26, 2006, at 5:44 AM, Brian Suda wrote: On 9/26/06, Yoan BLANC [EMAIL PROTECTED] wrote: Do you prefer if I send a Content-Type: text/html; charset=iso-8859-1 It's much a matter of your tool. Technorati deals with this page correctly (except with the dates) so why x2v cannot, strange no? I'll look into this now that i know you want it to be iso-8859-1. The technorati service and my site are running the same XSLT. To actually execute the transform you need something else. In my case, i am using PHP, i don't know what technorati uses to call the XML and XSLT. We're using PHP, but its a different implementation than yours, Brian. -ryan ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss
Re: [uf-discuss] A bug in the Technorati's events exporting tool
On Sep 25, 2006, at 6:48 AM, Brian Suda wrote: This has been corrected[1]. I have committed the changes to HG, so anyone at technorati can pull them down done. -ryan ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss
Re: [uf-discuss] A bug in the Technorati's events exporting tool
On Sep 26, 2006, at 5:44 AM, Brian Suda wrote: I won't go too much technical detail on the discuss list, you can email me off list for a complete explaination and how the W3C defines the order of where to look for language encodings, etc. Our own Mark Pilgrim wrote a good explanation of this: http://www.feedparser.org/docs/character-encoding.html ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss
Re: [uf-discuss] A bug in the Technorati's events exporting tool
Good catch! i had a look at the issue and the problem was that all our test cases added the time from the timezone up to 24, in your case you were subtracting to get '0' which was not being checked for so things were going padded then that '0' was being added so we got '7' instead of '6'. This has been corrected[1]. I have committed the changes to HG, so anyone at technorati can pull them down (you might need a few files - i'm not sure which version technorati is running). I have updated the code at http://suda.co.uk/projects/X2V/ so you can test it there as well. I will also add a 'subtraction' instance into the test cases as well. -brian [1] - http://hg.microformats.org/x2v?fd=753da7c7d63c;file=datetime.xsl On 9/25/06, Yoan BLANC [EMAIL PROTECTED] wrote: Hi, I've hCal'd a website that contains with this kind of dtend : abbr class=dtend title=2006-09-24T02:00:00+02:00.../abbr and feeds.technorati.com/events/ convert it to DTEND:20060924T000Z with se7en 0 instead of six. Test it from there : http://feeds.technorati.com/events/http://www.bikinitest.ch/agenda/2006/09/ Cheers, -- Yoan Blanc ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss -- brian suda http://suda.co.uk ___ microformats-discuss mailing list microformats-discuss@microformats.org http://microformats.org/mailman/listinfo/microformats-discuss