[gstreamer-bugs] [Bug 639448] pwg: Wrong encoding - mangled utf-8 characters

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jan 14 01:24:37 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=639448
  GStreamer | documentation | 0.10.31

--- Comment #3 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2011-01-14 09:24:34 UTC ---
Ah, I see what you mean now (it always shows fine in epiphany/webkit, but not
in iceweasel/firefox for e).

I came up with this hack, which I'll push after the relase.

diff --git a/docs/manuals.mak b/docs/manuals.mak
index 9736c38..ebf65e4 100644
--- a/docs/manuals.mak
+++ b/docs/manuals.mak
@@ -89,6 +89,7 @@ $(BUILDDIR)/$(MAIN): $(XML) $(CSS) $(EXTRA_SRC)

 # we should switch to xsltproc
 # docbook2html aka jade can't add the encoding easily to the html meta
+# (but we are lazy and just abuse sed to add it)
 # jw -f docbook -b html -d pwg.dsl -o ../html -V '%use-id-as-filename%'
$(MAIN)
 # this is a starting point
 # xsltproc --nonet /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
pwg.xml
@@ -98,7 +99,8 @@ html/index.html: $(BUILDDIR)/$(MAIN) $(PNG_BUILT) $(FIG_SRC)
        @echo "*** Generating HTML output ***"
        @-mkdir -p html
        @cp -f $(srcdir)/../image-png $(BUILDDIR)/image.entities
-       @cd $(BUILDDIR) && docbook2html -o ../html -V '%use-id-as-filename%'
$(MAIN)
+       @cd $(BUILDDIR) && SP_ENCODING="UTF-8" docbook2html -o ../html -V
'%use-id-as-filename%' $(MAIN)
+       @$(SED) -i -e 's/\(^CONTENT.*\)\(.>\)/\1;charset=UTF-8\2/' html/*html
        @test "x$(CSS)" != "x" && \
           echo "Copying .css files: $(CSS)" && \
           cp $(srcdir)/$(CSS) html

-- 
Configure bugmail: https://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