Skip to content

Commit acf207e

Browse files
committed
Improve the Unicode support FAQ documentation
1 parent 5a20c85 commit acf207e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/site/markdown/faq.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ FileAppenders support an `Encoding` property allowing character set encoding con
5656
For example, you can use `UTF-8` or `UTF-16` when writing XML or JSON layouts.
5757
Log4cxx also implements character set encodings for `US-ASCII` (`ISO646-US` or `ANSI_X3.4-1968`)
5858
and `ISO-8859-1` (`ISO-LATIN-1` or `CP1252`).
59-
You are highly encouraged to stick to `UTF-8` for the best support from tools, API and operating systems.
59+
You are highly encouraged to stick to `UTF-8` for the best support from tools and operating systems.
6060

6161
The `locale` character set encoding provides support beyond the above internally implemented options.
6262
It allows you to use any multi-byte encoding provided by the standard library.
@@ -84,7 +84,9 @@ loggername - ?????????? ???? ??????????????
8484
```
8585

8686
The important thing to understand is that this is some always applied, backwards compatible default
87-
behaviour and even the case when the current environment sets a locale like `en_US.UTF-8`. One might
88-
need to explicitly tell the app at startup to use the locale of the environment and make things
89-
compatible with Unicode this way.
87+
behaviour and even the case when the current environment sets a locale like `en_US.UTF-8`.
88+
89+
So when using the `locale` character set encoding you will, at startup,
90+
need to explicitly set the `std::locale` to a value able to encode your characters
91+
and which is supported on your operating environment.
9092

0 commit comments

Comments
 (0)