PDA

View Full Version : Using the JSFL FLFile.write and UTF8


barklund
08-03-2005, 09:38 PM
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

hangalot
08-04-2005, 12:05 PM
best place i would imagine for this is on extending flash list. i believe it cannot do utf-8, but a MM engineer would be able to give you a definite answer

barklund
08-04-2005, 01:48 PM
The ExtendFlash list is down (afaics) - and I have no good resources to get in touch with any MM engineers with knowledge of JSFL.

I've also mailed Guy Watson, as he's done a lot with this plugin and wrote the article about it on mm.com. He is also the manager of the (temporarily closed) extend-flash mailing-list.

--
Morten Barklund

hangalot
08-04-2005, 02:11 PM
you usally post there, so i was suprised to see you here. there has been no traffic on the list for a while, but i got the reminder that i am subscribed to the list a few days ago. its guy's BDay today so i would not expect an immediate reply from him, as to the MM engineers, that list is your best bet, since I have had them respond to my queries

barklund
08-04-2005, 03:03 PM
The list seems to be down. I got the reminder too, I send a mail to the list yesterday, but got some error in return. I've just re-send - then I was informed, that I cannot post as a non-member, then I re-subscribed, and now I've posted it.

I have no idea why, I was off the list. But now I've tried the list :)

Seems like something changed on the list, as I can see in the archives, that there has been some traffic within the last few days. Oh well, maybe it works again :)

Thanks in advance :)

--
Morten Barklund

hangalot
08-04-2005, 03:05 PM
weird. that would explain why i get no mail from the list :S
have you mailed this info to guy? i would suck if everyone had to resubscribe (since i think we will loose several MM engineers like that on the list)

barklund
08-04-2005, 03:37 PM
Nope, will do :)

did you just receive my posting? If not, maybe yor're off it as well :/

hangalot
08-04-2005, 03:40 PM
no :(

jjbilly
08-08-2005, 04:09 PM
did you two get anywhere with this? I didn't even get the recent reminder you got.

barklund
08-08-2005, 04:23 PM
As you can see in the archives:

http://lists.flashguru.co.uk/pipermail/extendflash/2005-August/thread.html

I made my post, found a workaround and was given other possible workarounds. And some MM engineer said, that he would try to see, if he could make JSFL work in UTF8 and Unicode in some future update :)

--
Morten Barklund

hangalot
08-08-2005, 04:29 PM
and i had to re-subscribe

jjbilly
08-09-2005, 10:08 AM
Thanks, I'll do the same.

nikomh
08-22-2005, 06:05 PM
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 ??