* FH fails ti accept Gedcom5.5 from PAF

Homeless Posts from the old forum system
Locked
avatar
peterjs
Newbie
Posts: 1
Joined: 11 Aug 2003 21:48
Family Historian: None

FH fails ti accept Gedcom5.5 from PAF

Post by peterjs » 11 Aug 2003 22:05

I've used the demo version of FH with a Gedcom 5.5 exported from PAF successfully. But it cannot not be read by the 2.1 version of FH I have just purchased. As soon as I try to 'OPEN' the GED file all I get is 'File is not in a GEDCOM format'. If I go back to the demo version, then Hey Presto, it works.

Any ideas ? Or do I get my money back and stick with PAF ?

Pete
[mad][confused]

ID:93

User avatar
Jane
Site Admin
Posts: 8442
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

FH fails ti accept Gedcom5.5 from PAF

Post by Jane » 11 Aug 2003 22:39

This has recently been discussed on the mailing list. I believe PAF may be exporting some addition characters to the start of the gedcom file.

Older versions of FH, did not check the headers, try opening your file in a text editor and checking the first few lines start with something like

0 HEAD
1 SOUR FAMILY_HISTORIAN
2 VERS 2.0
2 NAME Family Historian
2 CORP Calico Pie Limited
1 FILE C:WORKFamily Historyexample.GED

Obviously yours should say PAF rather than family historian, but there should be no errant characters.

Send me an e-mail to jane at taubman.org.uk, and attach one of your files, if you would like me to check it.

avatar
Guest

FH fails ti accept Gedcom5.5 from PAF

Post by Guest » 13 Aug 2003 17:08

My Mistake....

I tried saving the Gedcom as ansi instead of the default UTF-8 in PAF and FH now reads it in OK.

Thanks for your reply anyway...

Pete[smile]

User avatar
SimonOrde
Program Designer
Posts: 352
Joined: 18 Nov 2002 10:20
Family Historian: V7
Location: Calico Pie

FH fails ti accept Gedcom5.5 from PAF

Post by SimonOrde » 13 Aug 2003 19:01

Pete

thanks for drawing my attention to this one.  The problem is caused by the fact that files in UTF-8 format are basically normal text files except that they start with 3 special characters.  If you had a program that would let you delete the first 3 chars from the UTF-8 files you would find that F.H. loads them OK.  The reason that it doesn't load them now is because these 3 characters effectively prevent F.H. from detecting the file header.  In the past, it would have accepted a GEDCOM file as such even if it had no header.  The current version will object if it finds no header and assume that the file is not GEDCOM (a header is mandatory for all GEDCOM files).

The solution is for F.H. to support UTF-8.  I've added it to the Wish List.  For now, your solution (export as ANSI) is fine.

Just for interest, you will probably find that old versions of Notepad (e.g. versions from Windows 98 etc) display the special characters, but new ones (eg. Windows XP's Notepad) know about the UTF-8 format, and don't.

P.S. If you can load a UTF-8 file into a simple text editor such as Notepad (not WordPad though), even if you can't delete the special characters, simply putting a blank line in front of the the header (the '0 HEAD' line) should also ensure that the header is detected, so that the file will load in F.H.

Locked