Hi Tiago, Put up your page as a publicly-available url and I can take a quick look at it.
(You can use different event data if you want to keep your stuff private.) I'd suggest that the first step is to put some non-English characters on the page itself, then add them to the Timeline data. That way you can see if the problem is that your page is not set to UTF-8 or if the data is not getting to, and then through, the Timeline library. I use non-US characters in Timeline all the time, so I'm sure that it works. Note that your non-US characters should be encoded in UTF-8, per the XML spec. Nothing else will do.... Regards, Larry ________________________________ From: Tiago Silva <[email protected]> To: [email protected] Sent: Saturday, December 27, 2008 8:18:57 PM Subject: Re: Timeline - Character Encoding Still no cigar :( i must be doing something wrong, i added both lines like you showed on the wiki page, but i still get the same result. thank you for the help, is there something else i might be doing wrong? On Sun, Dec 28, 2008 at 1:09 AM, Larry Kluger <[email protected]> wrote: Hi tiagosilva, In addition to David's tips, be sure that your html file (the page that is displaying the Timeline) is set to utf-8 1) No quirks browser setting: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> See: http://developer.yahoo.com/yui/3/cssgrids/ 2) Set utf-8 content type: <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> Note: the above should always be included in your html file. In addition, the content type should also be set in your http reply headers if you have access to your web server's settings. See: http://www.w3.org/International/O-charset I have updated the wiki page http://code.google.com/p/simile-widgets/wiki/Timeline_GettingStarted Regards, Larry ________________________________ From: David Huynh <[email protected]> To: [email protected] Sent: Saturday, December 27, 2008 7:23:53 PM Subject: Re: Timeline - Character Encoding Some text editors (such as Notepad++ and SciTE on Windows) allow you to specify the encoding of your files. Please choose UTF-8 encoding. Also include this declaration at the beginning of your XML file <?xml version="1.0" encoding="UTF-8"?> Try to load your XML file directly into your browser and see how those characters appear. If they look fine, then I think they should look fine in the timeline. David tiagosilva wrote: > How to choose of force the apropriate encoding? > > I'm use some characters like ã á è ã ê just to list a few... however > when i use them in the XML file for the event source the timeline > replaces them with ? > > How to solve this? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
