diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-07-19 14:31:59 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-07-20 17:45:06 +0100 |
commit | 545bd0603213115f9003894a2e2db1b06dbb33ec (patch) | |
tree | bc48755923859d212522fb72b8a7bda5c1ce0344 /source/fitz | |
parent | c3d9f08d70530ff83c8e08a664614d85d162efb4 (diff) | |
download | mupdf-545bd0603213115f9003894a2e2db1b06dbb33ec.tar.xz |
Add char encoding to produced SVG files.
Stops a warning with the validator.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/svg-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c index 2ca56796..b947fd38 100644 --- a/source/fitz/svg-device.c +++ b/source/fitz/svg-device.c @@ -1137,7 +1137,7 @@ fz_device *fz_new_svg_device(fz_context *ctx, fz_output *out, float page_width, dev->out_store = out; dev->id = 0; - fz_printf(ctx, out, "<?xml version=\"1.0\" standalone=\"no\"?>\n"); + fz_printf(ctx, out, "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"); fz_printf(ctx, out, "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n"); fz_printf(ctx, out, "<svg xmlns=\"http://www.w3.org/2000/svg\" " "xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" " |