Whaly's World tail -f /var/log/whaly

20Jul/090

Changing the subtitle language in Monkey Island Special Edition

The first time you start Monkey Island SE, you can choose the subtitle language, but after that you can't do it anymore with the game interface.

You can follow the instruction on the steam support page or you can use my little tool and if you don't trust me the source code is available.

Have fun !
Whaly



16Jul/091

XmlWriter and UTF-8 encoding without signature

I used this code to serialize some objects in Xml :

XmlWriter writer = new XmlTextWriter(stream, Encoding.UTF8);

But the output contains an UTF header, the Byte Order Mark (BOM). The use of the header/signature is usually for xml file, if you want to use the ouput in an HttpResponse, you don't need the signature. (some parser can cause a parsing error in java, like org.xml.sax.SAXException).

Here is the change to remove the BOM :

XmlWriter writer = new XmlTextWriter(stream, new UTF8Encoding(false));
Tagged as: , , , 1 Comment