[EMAIL PROTECTED] wrote: > I am currently developping a new video plugin similar to imdb.py, but for > getting french comments and title for movies. The equivalent website for > that in France is called 'allocine.fr'. The grabber works very well and > give me all the needed information, but i have a big problem when i want > to write the strings to the FXD files.
Unicode again, I'm starting to hate it. > 1 - I have created a plugins/fxdallocine.py and a video/plugins/allocine.py > 2 - These files are copy of plugins/fxdimdb.py and video/plugins/imdb.py The imdb grabber that writes the file is bad! You should use the fxdparser in util to write the file. And you need cvs of Freevo. > 3 - The problem is located in the str2XML function of fxdallocine.py (i > think) because strings are now in French, with many accent, like é, è, à, > and so on. > 4 - So my big problem is :How to convert these characaters, where in the > code and with which kind of code ??? > If someone can just give me an example to encode a string like > "après leur échec pour éliminer Sarah Connor" > in an FXD file, it would be great... I just patched the fxdparser. You need to write the files in the encoding 'utf-8' and (not like the imdb parser) put the encoding information in the header. Again, use fxdparser to read _and_ write fxd files. How to write, just take a look at directory.py where the new config is written. BTW, if someone could fix the imdb grabber, that would be really great. Dischi -- "AOL for Dummies" is kind of redundant, don't you think? ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel