VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    INFO: Locale-C
    INFO: Converting filenames to US-ASCII
    ERR: Cannot convert UTF8 String UTF8 string

    invalid or incomplete multibyte or wide character

    version I use

    DVDAuthor:pumux, version 0.6.12-alpha-2992-GfD-4.

    XML I use :

    <subpictures>
    <stream>
    <textsub filename="subtitle.srt"
    characterset="ISO-8859-1" fontsize="25" font="ARIALBD.TTF"
    horizontal-alignment="center" vertical-alignment="bottom"
    left-margin="10" right-margin="10" top-margin="20" bottom-margin="30"
    movie-width="720" movie-height="574" subtitle-fps="25" movie-fps="25"/>
    </stream>
    </subpictures>

    what is wrong ?

    can someon help ?
    Quote Quote  
  2. I'm not sure, but maybe the problem is not the XML but the SRT file? Could you check if another (or empty) srt file produces the same error with the above XML?
    Quote Quote  
  3. Member
    Join Date
    Jun 2005
    Location
    Portugal
    Search Comp PM
    I opened the subtitles file in the notepad

    they are in English...and my XML uses charset ISO-8859-1

    could that be the problem ?
    Quote Quote  
  4. I have tested your xml (just copied from the above post and saved as text file). Using a srt file from myself (renamed to subtitle.srt and put into the same directory) -> No problems:

    DVDAuthor:pumux, version 0.6.12-alpha-2992-GfD-5.
    Build options: gnugetopt iconv freetype
    Send bugs to <...>

    INFO: Locale=C
    INFO: Converting filenames to US-ASCII
    INFO: Detected subtitle file format: subviewer
    INFO: Opened iconv descriptor. *UTF-8* *ISO-8859-1*
    INFO: Read 7 subtitles
    INFO: Unicode font: 1185 glyphs.
    INFO: Found EOF in .sub file.
    WARN: Read 0, expected 4
    INFO: 7 subtitles added, 0 subtitles skipped, stream: 32, offset: 0.18

    Statistics:
    - Processed 7 subtitles.
    - The longest display line had 37 characters.
    - The maximum number of displayed lines was 2.
    - The normal display height of the font ARIALBD.TTF was 29.
    - The bottom display height of the font ARIALBD.TTF was 42.
    - The biggest subtitle box had 2392 bytes.

    Maybe your srt file is coded in unicode (you cannot see this in notepad, as notepad would recognise the unicode coding and show it as 'normal text')
    Try the following:
    Open the srt file in wordpad (not notepad!)
    Save it again with 'Save as' and select 'Text Document' as filetype (if it is unicode the default filetype would be 'Unicode Text Document')
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!