From 89d6f4a45190176a964843ebf82e80fd44a9166c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 29 Mar 2024 14:56:57 -1000 Subject: [PATCH] ;doc: text encoding: mention BOM support [#2189] --- hledger/hledger.m4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 617835716..874a0a7ed 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -103,6 +103,8 @@ For more about how to do that on your system, see [Common tasks > Setting LEDGER ## Text encoding Data files containing non-ascii characters must use UTF-8 encoding. +An optional [byte order mark (BOM)](https://www.unicode.org/faq/utf_bom.html#BOM) is allowed, at the beginning of the file (only). + Also, your system should be configured with a locale that can decode UTF-8 text. On some unix systems, you may need set the `LANG` environment variable, eg. You can read more about this in [Unicode characters](#unicode-characters), below.