[gstreamer-bugs] [Bug 172848] [subparse] subtitles with special chars are displayed as "???????"

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Mar 24 09:58:46 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=172848
 GStreamer | gst-plugins-base | Ver: HEAD CVS


Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #61900|none                        |committed
               Flag|                            |
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|subtitles with special chars|[subparse] subtitles with
                   |are displayed as "???????"  |special chars are displayed
                   |                            |as "???????"
   Target Milestone|HEAD                        |0.10.6




------- Comment #11 from Tim-Philipp Müller  2006-03-24 17:58 UTC -------
Thanks for testing, committed with minor/cosmetic changes:

 2006-03-24  Tim-Philipp Müller  <tim at centricular dot net>

        * gst/subparse/gstsubparse.c: (convert_encoding),
        (gst_sub_parse_change_state):
        * gst/subparse/gstsubparse.h:
          Text subtitle files may or may not be UTF-8. If it's not, we
          don't really want to see '?' characters in place of non-ASCII
          characters like accented characters. So let's assume the input
          is UTF-8 until we come across text that is clearly not. If it's
          not UTF-8, we don't really know what it is, so try the following:
          (a) see whether the GST_SUBTITLE_ENCODING environment variable
          is set; if not, check (b) if the current locale encoding is
          non-UTF-8, and use that if it is, or (c) assume ISO-8859-15 if
          the current locale encoding is UTF-8 and the environment variable
          was not set to any particular encoding. Not perfect, but better
          than nothing (and better than before, I think) (fixes #172848).


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list