User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19

Thread: Reading a Unicode text file?

  1. #11
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Phi View Post
    You can add the UTF-8 BOM mark by prepending 3 bytes with values 0xEF 0xBB 0xBF to the start of the file. In decimal terms, that's 3 bytes, 239 187 191. You can add it with the Binary object. Or a CT dude could add that functionality to an extension
    Prepending it if it doesn't exist is a good idea! It's just annoying to have to do all these 'workarounds' for something that seems so simple.

    In the messages I've exchanged with Yves it seems MMF Unicode can't read UTF-8 encoded files, it can only read "Unicode" or "UCS-2 Little Endian".

  2. #12
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Oops, yeah, you want UTF-16 for MMF Unicode. My bad.
    Just prepend 0xFF 0xFE then (aka 255 254).
    UCS-2 was deprecated by UTF-16 in July 1996, but it holds 96.9% similarity to UTF-16.

  3. #13
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Phi, that's a really good fix! I'll give it a go

  4. #14
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    *1 hour later, Phi notices the finger-shape holes in his desk

  5. #15
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    * 2 weeks later, Phi is still waiting for netninja to tell if it worked and is now very hungry

  6. #16
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't had a chance to try it yet! I went on holiday for 3 weeks overseas while you've been waiting haha. I'll get back to you

  7. #17
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    * Phi is now dead from starvation

  8. #18
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it's killing you, why don't you try and make an example of it to test? :P

  9. #19
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    I just assumed that you'd keep your word and get back to me...

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Text Reading And Editing
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th November 2009, 07:09 PM
  2. Reading a text- or csv file - possible?
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th July 2009, 01:23 PM
  3. reading a text file for lots of data (help?)
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 19th June 2008, 12:24 PM
  4. Reading from a text file.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st May 2008, 06:01 AM
  5. Reading text from file
    By KenTankerous in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th March 2007, 08:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •