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