Commit 6eef3201 authored by Daniel Dreibrodt's avatar Daniel Dreibrodt

Bugfix: XML Output is now proper UTF-8 encoded if it contains special characters

parent 9aee7a25
VLC Skin Editor release 0.8.5
VLC Skin Editor release 0.8.6
-----------------------------------------------------------
Changelog:
-----------------------------------------------------------
0.8.6 - Bugfix: XML Output was not proper UTF-8
0.8.5 - Various bugfixes and technical improvements
- A toolbar was added
- Sliders can be edited in the preview window
......
......@@ -11,14 +11,15 @@ Name: {group}\VLC Skin Editor; Filename: {app}\VLCSkinEditor.exe; WorkingDir: {a
Name: {group}\Uninstall VLC Skin Editor; Filename: {uninstallexe}
Name: {group}\Online Help; Filename: http://www.videolan.org/vlc/skinedhlp/
[Setup]
OutputBaseFilename=VLCSkinEditor_setup
VersionInfoVersion=0.8.6
AppVersion=0.8.6
AppVerName=0.8.6
OutputBaseFilename=VLCSkinEditor_setup
VersionInfoCompany=VideoLAN
VersionInfoDescription=Setup for the VLC Skin Editor
VersionInfoCopyright=2009 VideoLAN
AppCopyright=2009 VideoLAN Team
AppName=VLC Skin Editor
AppVerName=0.8.6
LicenseFile=LICENSE.TXT
PrivilegesRequired=poweruser
DefaultDirName={pf}\VideoLAN\VLC Skin Editor
......@@ -29,7 +30,6 @@ AppPublisher=VideoLAN
AppPublisherURL=http://www.videolan.org
AppSupportURL=http://www.videolan.org/vlc/skineditor.html
AppUpdatesURL=http://www.videolan.org/vlc/skineditor.html
AppVersion=0.8.5
AppID={{977C5080-EA08-435D-8901-233A506E1651}}
AppReadmeFile={app}\README.TXT
UninstallDisplayIcon={app}\VLCSkinEditor.exe
......
......@@ -30,6 +30,7 @@ import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.LinkedList;
......@@ -236,10 +237,9 @@ public class Skin implements ActionListener{
/** Saves the XML Code into the skinfile **/
public void save() {
try {
FileWriter writer = new FileWriter(skinfile);
writer.write(returnCode());
writer.flush();
writer.close();
FileOutputStream fos = new FileOutputStream(skinfile);
fos.write(returnCode().getBytes("UTF-8"));
fos.close();
}
catch(Exception ex) {
JOptionPane.showMessageDialog(null,Language.get("ERROR_SAVE_MSG")+"\n\n"+ex.toString(),Language.get("ERROR_SAVE_TITLE"),JOptionPane.ERROR_MESSAGE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment