[Tilesathome] Problems with UTF-8
Ralf Kleineisel
ralf at kleineisel.de
Tue Oct 21 13:58:55 BST 2008
Hi,
I'm having problems when trying to render tiles which contain tags with
UTF-8 strings.
Tiles without UTF-8 render fine:
$./tilesGen.pl xy 2008 1255
- Using working directory /tmp
- OptiPNG version 0.5.5
- pngnq version 0.5
- Java version 1.6 is available
- rendering using or/p
This is version 11297 (Trondheim) of tilesgen running on linux, ID: 49605
- rasterizing using SVG::Rasterize::Engine::Inkscape
[#0 0% warning] *** No zoomlevel specified! Assuming z12 ***
[#0 0% ] Tileset (12,2008,1255) around 56.97,-3.47
[#0 0% Download] Downloading: Map data for captionless,tile,maplint
[#0 100% ] Tile of complexity 0 took us 68 seconds to render
[#0 100% ] Suggested complexity is currently: 100000
But as soon as I try a tile with UTF-8 placenames:
$./tilesGen.pl xy 2168 1392
- Using working directory /tmp
- OptiPNG version 0.5.5
- pngnq version 0.5
- Java version 1.6 is available
- rendering using or/p
This is version 11297 (Trondheim) of tilesgen running on linux, ID: 49605
- rasterizing using SVG::Rasterize::Engine::Inkscape
[#0 0% warning] *** No zoomlevel specified! Assuming z12 ***
[#0 0% ] Tileset (12,2168,1392) around 49.81,10.59
[#0 0% Download] Downloading: Map data for captionless,tile,maplint
[#0 0% tile-z13] Rasterizing failed to create output: Output file does not
exist at lib/SVG/Rasterize/Engine.pm line 58.
Rasterize command: "/usr/bin/inkscape", "-z", "-w", "512", "-h", "512",
"--export-area=0.000000:0.000000:878.906250:878.906250",
"--export-png=/tmp/12_2168_1392_fzR1E/tile-z13-s0.png",
"/tmp/12_2168_1392_fzR1E/tile-z13.svg"
Rasterize engine STDERR:
(inkscape:11599): Gdk-CRITICAL **: gdk_display_list_devices: assertion
`GDK_IS_DISPLAY (display)' failed
/tmp/12_2168_1392_fzR1E/tile-z13.svg:1270: parser error : Input is not
proper UTF-8, indicate encoding !
Bytes: 0xFC 0x6E 0x67 0x62
y="969.060216093871" k="name" class="place-caption village-caption" layer="5">Th
^
/tmp/12_2168_1392_fzR1E/tile-z13.svg:1270: parser error : Input is not
proper UTF-8, indicate encoding !
Bytes: 0xFC 0x6E 0x67 0x62
y="969.060216093871" k="name" class="place-caption village-caption" layer="5">Th
^
** (inkscape:11599): WARNING **: Specified document
/tmp/12_2168_1392_fzR1E/tile-z13.svg cannot be opened (is it valid SVG file?)
When I look at the svg file which seems to be the problem I can seen that
placenames with Umlauts are not in UTF-8:
<text x="930.209000000008" y="969.060216093871" k="name"
class="place-caption village-caption" layer="5">Th<FC>ngbach</text>
This should be "Thüngbach".
In my config I have set i18n=1.
Any ideas?
More information about the Tilesathome
mailing list