Hi,

there are some problems because of the unicode changes, so I post some
guidelines how to fix them:

o all attributes of an item should be handled as unicode. Exception:
  filenames, they should be string.

o to convert use Unicode('foo') and String('foo')

o you also need to be carefull when comparing some strings. You can't
  compare string with unicode, this may crash. In a result, you
  shouldn't compare a text with '' or something like that. If text is
  unicode, compare it with u''.

o Translations may return unicode, but maybe not. Make sure they are
  handled the correct way. Maybe we should add Unicode around the
  translation function.

o you can't 'print' or '_debug_' Unicode objects right now, but I will
  fix that.


Todo:
-----

I saw Gustavo started with tv and webserver, here is what I think:
everything should be handled as unicode. XML files are unicode, so the
xmltv shouldn't convert them. Also recordings and favorites should be
handled as unicode. The only exception is when creating a
filename. Than use String(...) to convert it back to string.

And the webserver: handle everything as unicode, too. And when you
print it (send it out to the world), transform it with String.



Dischi

-- 
"Real stupidity beats artificial intelligence every time."

          -- Bursar 1 - Hex 0 (Terry Pratchett, Hogfather)



-------------------------------------------------------
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_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to