Skip to content
TreeFix

Repair garbled GEDCOM encoding and export clean UTF-8 — Step-by-step guide

Fixes family-tree files whose HEAD CHAR lies about the encoding (ANSEL or ANSI headers over UTF-8 or Windows-1252 bytes) and whose UTF-8 names get split across CONC continuation lines. Auto-detects the real encoding, re-joins continuations before decoding, and writes a valid UTF-8 GEDCOM so names and places stop garbling.

What the sample produces

The demo file declares "1 CHAR ANSEL" but actually holds UTF-8 bytes, with one name split across a CONC/CONT boundary mid-character. TreeFix detects the true encoding, rejoins the continuation lines before decoding, and writes clean UTF-8 with a corrected CHAR tag so José María García and Björk Guðmundsdóttir import correctly.

Header charset
1 CHAR UTF-8
Name @I1@
José María García
Name @I2@
Björk /Guðmundsdóttir/

How to use it

  1. Export or locate the GEDCOM (.ged) file whose accented names or places show up as mojibake or question marks in your genealogy app.
  2. Drop it here and check the report — it names the encoding your header claimed versus the real one it detected, and how many accented characters it recovered.
  3. Download the -utf8.ged file and re-import it; the HEAD CHAR is now UTF-8 and all names, places, and notes read correctly.

Supported files

Handles UTF-8/UTF-16(BOM), ANSEL, and Windows-1252 byte encodings with mis-declared CHAR headers and CONC/CONT splits. Rare ANSEL graphic characters outside the standard table and non-GEDCOM text files are out of scope.

Open TreeFix

Compare TreeFix with alternatives