Jump to content
Sign in to follow this  
JeffChrisope

ForeFlight FPL format read support?

Recommended Posts

I tried using LNM to read a ForeFlight .fpl file “shared” from FF (va email), but LNM threw (and caught) an exception, saying the format is invalid.  I don’t see FF’s .fpl variant called out as supported in the LNM documentation, but I was hoping I would work since SkyVector’s .fpl format works great with LNM.  
 

Is ForeFlight support really not there, or is this just a bug?

Share this post


Link to post
Share on other sites

I've uploaded an example here - but I think I see the issue.  The XML meta tag encoding declaration claims that it's UTF-8, but these file are "UCS-2 LE BOM", according to Notepad++ (whatever the heck that encoding is, never actually encountered it, so maybe it's an odd way of classifying in Notepad++).  If I resave the file explicitly as UTF-8, LNM opens and parses it fine.  So, I'm not sure where the mis-encoding is occurring - by ForeFlight when it attaches it to the email as part of the sharing process, or by my mail client (just Windows 10 Mail) when I save the attachments to the local file system.  Odd.

 

Share this post


Link to post
Share on other sites

Thank you for the file. This helps. Putting "UTF-8" in the header and decoding it as UCS-2/UTF-16 is definitely wrong.

UTF-8 can be viewed in any editor. Even in ones supporting only simple text. Display will only be affected if special characters like umlauts or accents are used. 

That's how a UTF-16 looks like in a normal  editor (a lot of zeroes):

image.png

I'll check if I can do a workaround. I remember similar issues with malformed add-on.xml files in P3D.

Alex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...