[FFmpeg-trac] #2431(undetermined:new): ffmpeg subtitle encoding of special characters does not working correctly

FFmpeg trac at avcodec.org
Fri Apr 5 02:26:49 CEST 2013


#2431: ffmpeg subtitle encoding of special characters does not working correctly
-------------------------------------+-------------------------------------
             Reporter:  Nick         |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  sub srt      |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Nick):

 Replying to [comment:9 cehoyos]:
 > Wouldn't this break subtitle files that are UTF-8 encoded?

 [[BR]]
 I meant that only for encoding of (ANSI) plain text into UTF-8. Subtitle
 streams which are already encoded in UTF-8 should '''not''' re-encode
 again.
 --> check if srt file is plain text or UTF-8 --> if plain text only then
 encode to UTF-8 with selected code page setting

 Encoding of ISO-8859-1 to UTF-8 as default case should be simple, see:
 [http://www.unicode.org/faq/utf_bom.html]
 [http://stackoverflow.com/questions/4059775/convert-iso-8859-1-strings-to-
 utf-8-in-c-c]

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2431#comment:10>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list