Closed Bug 733900 Opened 14 years ago Closed 12 years ago

Can't load ISO8859 .ics file from a server or local.

Categories

(Calendar :: Provider: ICS/WebDAV, defect)

Lightning 1.2
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 334657

People

(Reporter: aurium, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Build ID: 20120215223356 Steps to reproduce: Creating a new calendar from a ICS web provider, trough menu "File > New > calendar...". Actual results: 1 - It access the ICS web provider; 2 - The HTTP reader "Content-type" is "text/plain; charset=iso-8859-15" 3 - The error console display two warnings: "Alerta: Ocorreu um erro ao ler os dados do calendário: Colivre. Código de erro: CAL_UTF8_DECODING_FAILED. Descrição: Ocorreu um erro ao descodificar um ficheiro iCalendar (ics) como UTF-8, verifique se esse ficheiro, incluindo símbolos e acentos, está codificado usando a codificação de caracteres UTF-8." "Alerta: Ocorreu um erro ao ler os dados do calendário: Colivre. Código de erro: READ_FAILED. Descrição:" No Events was loaded. :-/ Expected results: The events mus be loaded from the provider. - - - - - - I try to download and import to my local Calendar. That fails with no output on console. Then i convert the file to UTF-8 and try to import again; That works! Why that is not respecting the charset declared on the HTTP reader?
According to iCalendar specification (RFC 5545) the iCalendar file/stream must be UTF-8 (or US-ASCII) charset. Other charsets are not supported. iCalendar files can be read from various locations like HTTP server, FTP server, CalDAV server, local disc, network share, ... Maybe the restriction was created because not all of them allow to specify a charset like in your HTTP header example.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.