Menu

#34 Need to specify encoding in spumux xml file

open
None
5
2007-03-25
2007-03-25
Anonymous
No

Paths containing non-ASCII characters cause an error in soumux, if the spumux file is not written in the UTF-8 encoding. UTF-8 seems to be the default encoding spumux wants to see in its XML file. Since dvd-slideshow doesn't configure a different encoding, any file name with characters other than plain ASCII throws an error in spumux:

DVDAuthor::spumux, version 0.6.11.
Build options: gnugetopt magick iconv freetype
Send bugs to <dvdauthor-users@lists.sourceforge.net>

/mnt/Photoalbum/Mich Edmée/200703 Divers/dvd-slideshow_temp_29516/Pit.spumux:3: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE9 0x65 0x2F 0x32
"0:0:7.000" end="0:0:9.000" transparent="ff0101" image="/mnt/Photoalbum/Mich Edm
^
ERR: Error in parsing XML

[I think this doesn't come out with correct line breaks; the carret indicating the error is under the last 'm' of "/mnt/Photoalbum/Mich Edm...", with the next letter beeing an e-acute ("é")]

Arranging for the path not containing the e-acute letter circumvents the problem for me.

Discussion

  • Scott Dylewski

    Scott Dylewski - 2007-03-25

    Logged In: YES
    user_id=954317
    Originator: NO

    I don't have much experience with non-english character encoding, so anything you can do to diagnose or help fix the problem would be helpful. I'll look into it when I can.

    -scott

     
  • Scott Dylewski

    Scott Dylewski - 2007-03-25
    • assigned_to: nobody --> sdylewski
     
  • Michel Lanners

    Michel Lanners - 2007-03-25

    Logged In: YES
    user_id=61371
    Originator: NO

    Hi,

    It seems to me that within the xml file, the character encoding needs to be specified somewhere. But I have no idea how, and neither spumux' nor dvdauthr's man page give any hint.

    Either that, or convert all strings to UTF-8 before inserting them into the xml file. There should be library functions for that, I bet?

    Thanks, and cheers

    Michel

     
  • Scott Dylewski

    Scott Dylewski - 2007-06-11

    Logged In: YES
    user_id=954317
    Originator: NO

    Somehow we need to set the locale and LANG variables, so I've set them to "C", which seems to work for me, but it's hard for me to test any special characters... I'm going to need more help here from someone who knows how to fix this sort of thing! Bash is supposed to be utf-8 aware...

     

Log in to post a comment.

MongoDB Logo MongoDB