Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006060Dwarf FortressLegends Mode -- History Exportpublic2012-06-27 22:082015-12-27 15:10
ReporterTruePikachu 
Assigned ToToady One 
PrioritynormalSeveritytrivialReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version0.34.11 
Target VersionFixed in Version0.42.05 
Summary0006060: History XML file is cp437 encoded, but says it's utf-8 encoded
DescriptionI'm working on a program to interpret the XML, and ran into problems; Perl's XML::Simple library tripped on bytes 0xAE and 0xAF. Looking at the file, the context called for item quality labels - the '<<' and '>>' glyphs are what were expected, and the cp437 equivilants to those two bytes; this proves the encoding is cp437. But the main problem is line 1:

<?xml version="1.0" encoding='UTF-8'?>

The file is _NOT_ utf8, it is cp437.
TagsProbable Quick Fix
Attached Files

- Relationships

-  Notes
(0034054)
SirPenguin (reporter)
2015-12-19 12:40

Would suggest tagging this as Probable Quick Fix. It's should be as simple as changing the XML writer from encoding="UTF-8" to encoding="CP437". no other steps needed

Not a huge deal but annoying enough
(0034216)
lethosor (manager)
2015-12-27 08:57

(Another solution would be to convert those characters to UTF-8; I'm not sure if DF is able to do that already, though, but some stuff from https://github.com/DFHack/dfhack/blob/master/library/MiscUtils.cpp [^] might work if that's desirable.)

- Issue History
Date Modified Username Field Change
2012-06-27 22:08 TruePikachu New Issue
2015-12-19 12:40 SirPenguin Note Added: 0034054
2015-12-27 08:54 lethosor Assigned To => lethosor
2015-12-27 08:54 lethosor Status new => confirmed
2015-12-27 08:54 lethosor Tag Attached: Probable Quick Fix
2015-12-27 08:57 lethosor Note Added: 0034216
2015-12-27 15:10 Toady One Status confirmed => resolved
2015-12-27 15:10 Toady One Fixed in Version => Next Version
2015-12-27 15:10 Toady One Resolution open => fixed
2015-12-27 15:10 Toady One Assigned To lethosor => Toady One


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker