File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ FileAppenders support an `Encoding` property allowing character set encoding con
56
56
For example, you can use ` UTF-8 ` or ` UTF-16 ` when writing XML or JSON layouts.
57
57
Log4cxx also implements character set encodings for ` US-ASCII ` (` ISO646-US ` or ` ANSI_X3.4-1968 ` )
58
58
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.
60
60
61
61
The ` locale ` character set encoding provides support beyond the above internally implemented options.
62
62
It allows you to use any multi-byte encoding provided by the standard library.
@@ -84,7 +84,9 @@ loggername - ?????????? ???? ??????????????
84
84
```
85
85
86
86
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.
90
92
You can’t perform that action at this time.
0 commit comments