I was running into problems with the web view of the TV guide - it would
crash as soon as it it accented characters (i.e. in fiance).
Here's a code snippet to sanitize the xml file - it will replace any such
characters with spaces.

Save the code below as accent_fix.pl, and run as 
    cat /tmp/TV.xml | accent_fix.pl > /tmp/TV.xml.new

---snip----
#!/usr/bin/perl -w
use strict;

while (<>) {
        for (my $i = 0; $i < length($_); $i++) {
                if (ord(substr ($_, $i, 1) ) >  127) {
                        substr ($_, $i, 1, " ");
                }
        }       
        print $_;
}
---snip----

l8r
Chris


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to