Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-08-2005, 04:29 PM   #11
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

and i had to re-subscribe
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 08-09-2005, 10:08 AM   #12
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default

Thanks, I'll do the same.
jjbilly is offline   Reply With Quote
Old 08-22-2005, 06:05 PM   #13
nikomh
Registered User
 
Join Date: Aug 2005
Posts: 3
Default this might help

Quote:
Originally Posted by barklund
Hi,

I've created a JSFL script within the Flash IDE - it is thus a UTF8-encoded file. I want to write new files with UTF8-encoding - but the FLfile.write does not add the three necessary UTF8-file header (%EF%BB%BF) to the beginning of the file. I cannot add these in front of the string, because this 3-byte sequence is not valid UTF8-characters.

Has anyone had this problem before?

--
Morten Barklund
this might work....
have a txt-file in the same directory that has unicode characters in the beginnin and save it from notepad to utf-8 format.

copy that file to a new file with FLfile.copy() command
then instead of creating the file, just add to it with FLfile.write() command.

i did manage to add utf-8 characters to the file this way, but it does not seem to work allways ??
nikomh is offline   Reply With Quote
Old 10-30-2009, 02:32 AM   #14
ezlife
Registered User
 
Join Date: Jul 2009
Posts: 1
Default

I just saw this post years later
Anyway, in case you want to save out in UTF8 directly through JSFL
you can write your string buffer to the output panel as an intermediate step.
Then use

fl.outputPanel.save(filename,false,false); //UTF-8 format

if you use fl.write it will save the file in ANSI format.
ezlife is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.