From f43d739dafccab1963a6d01d72578766e89562f6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 13 Oct 2011 12:30:17 +0100 Subject: [PATCH] Make sure generated KML is correctly UTF-8 encoded --- bin/mkgeo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mkgeo b/bin/mkgeo index 880b2d5..6e96c42 100755 --- a/bin/mkgeo +++ b/bin/mkgeo @@ -58,9 +58,9 @@ $countries->delete; my $zonefile = IO::File->new("> data/${zone}") || die "$!"; my $kmlfile = IO::File->new("> kml/${zone}.kml") || die "$!"; -my $kmlwriter = XML::Writer->new(OUTPUT => $kmlfile); +my $kmlwriter = XML::Writer->new(OUTPUT => $kmlfile, ENCODING => 'utf-8'); -$kmlwriter->xmlDecl("UTF-8"); +$kmlwriter->xmlDecl(); $kmlwriter->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2"); $kmlwriter->startTag("Document"); -- 2.39.5