10 messages in com.googlegroups.google-gadgets-apiRe: Problems with windows-1251
FromSent OnAttachments
Bagum09 Apr 2007 01:18 
teshca11 Apr 2007 02:11 
teshca11 Apr 2007 05:09 
Michael11 Apr 2007 11:07 
teshca11 Apr 2007 23:47 
Michael11 Apr 2007 23:54 
teshca18 Apr 2007 00:31 
labtopia18 Apr 2007 15:26 
teshca19 Apr 2007 00:37 
labtopia19 Apr 2007 09:17 
Subject:Re: Problems with windows-1251
From:teshca (Nick@gmail.com)
Date:04/11/2007 05:09:55 AM
List:com.googlegroups.google-gadgets-api

The same problem I have when I try to get text content. I can't get text file with _IG_FetchContent function if this file isn't UFT-8 encoded. For example I can't get simple html text "http://www.mail.ru" both on IE and Firefox. Every russian character replaced with strange one.

This problem looks like bug in Google Gadget API I tried to get this xml "http://www.cbr.ru/scripts/XML_daily.asp" and I had the same result. I suppose that this problem isn't only with "windows-1251" encoding. I think that this problem occured with any encoding except "UTF-8". Did anyone work with not UTF-8 encoded xml files? Did you get the same result?

On 9 апр, 12:18, "Bagum" <Vadi@gmail.com> wrote:

Hi everyone! I've got a problem with russian symbols while parsing an XML file. The coding of XML is "windows-1251". I use _IG_FetchXmlContent() to retrieve the XML file as a DOM tree. But when i try to display fields containing russian symbols, i can see only hieroglyphs. Other fields are displayed correctly. Moreover, this problem exists only in Opera and Firefox. In Internet Explorer everything is displayed properly.

I think it is caused by mismatching of codings in the gadget (UTF-8) and remote XML file (windows-1251), but i don't understand what i have to do to solve this problem.

Anyone knows?