ファイルを utf-8 エンコード形式で保存したい (BOM なしの utf-8 ではない)。Adobe Charset サポート ページに明示的な情報はありません
(http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/charset-codes.html)
ファイルをcsv拡張子のutf-8形式で保存したい。私は次のことを試しましたが、私が望むものを手に入れています:
byte.writeMultiBytes(fileContent,"utf-8");
私も試しましたが、
ユニコード-1-1-utf-8、ユニコード-2-0-utf-8、x-ユニコード-2-0-utf-8。
他の方法も試しましたが、必要なエンコード形式をまだ取得していません。
writeUTF(var:String) writeByte(var:String)
これが私が今持っているものです、
var fileReference:FileReference = new FileReference();
var bytes:ByteArray = new ByteArray();
// SAVING file in utf-8 encoding format.
bytes.writeUTFBytes(this.fileContents);
fileReference.save(bytes, "PluginLog.csv");
closePopup(null);