Anonymous | Login | Signup for a new account | 2025-01-22 13:57 PST |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||
ID | Project | Category | View Status | Date Submitted | Last Update | |
0006060 | Dwarf Fortress | Legends Mode -- History Export | public | 2012-06-27 22:08 | 2015-12-27 15:10 | |
Reporter | TruePikachu | |||||
Assigned To | Toady One | |||||
Priority | normal | Severity | trivial | Reproducibility | always | |
Status | resolved | Resolution | fixed | |||
Platform | OS | OS Version | ||||
Product Version | 0.34.11 | |||||
Target Version | Fixed in Version | 0.42.05 | ||||
Summary | 0006060: History XML file is cp437 encoded, but says it's utf-8 encoded | |||||
Description | I'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. | |||||
Tags | Probable Quick Fix | |||||
Attached Files | ||||||
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 |