read_gedcom_encoding: Read the Byte Order Mark of the GEDCOM file

View source: R/import.R

read_gedcom_encodingR Documentation

Read the Byte Order Mark of the GEDCOM file

Description

This function reads the Byte Order Mark of a GEDCOM file in order to determine its encoding. It only checks for UTF-8 or UTF-16 - if neither of these are found it throws an error.

Usage

read_gedcom_encoding(filepath)

Arguments

filepath

The full filepath of the GEDCOM file.

Value

A character string indicating the encoding of the file.


jl5000/tidyged.io documentation built on Aug. 11, 2022, 9:53 a.m.