Another fix for non-ASCII characters in NIBs

This commit is contained in:
tlrobinson
2008-12-09 01:54:29 -08:00
parent 29d33193cd
commit 39ff2b46ab
+3 -3
View File
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@import <Foundation/Foundation.j>
@import <AppKit/CPCib.j>
@@ -27,8 +28,7 @@
@import "NSFoundation.j"
@import "NSAppKit.j"
importClass(java.io.FileWriter);
importClass(java.io.BufferedWriter);
importPackage(java.io);
CPLogRegister(CPLogPrint);
@@ -95,7 +95,7 @@ var unarchiver = [[CPKeyedUnarchiver alloc] initForReadingWithData:data],
[archiver encodeObject:objectData forKey:@"CPCibObjectDataKey"];
[archiver finishEncoding];
var writer = new BufferedWriter(new FileWriter("MainMenu.cib"));//outputPath + name.substring(0, args[0].indexOf(".")) + ".o"));
var writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("MainMenu.cib"), "UTF-8"));//outputPath + name.substring(0, args[0].indexOf(".")) + ".o"));
writer.write([data string]);