At the moment reading UTF-16 properties file is completely unsupported. I would be nice to have this feature build in.
If log4cplus will support unicode properties file, like in this example
log4cplus.appender.DriverFile.File=C:/Users/日本語/AppData/Local/FooBar
It should also be possible to open with characters not in current locale's encoding character set. Under Microsoft Windozz it is possible to open a stream with a UTF-16 path (wofstream::open
). As far as I know, boost also support Unicode path for stream.
I have implement some UTF16 properties file support and also UNICODE file path support in revisions 1565 and 1566 on PRODUCTION_1_0_x branch.
The UTF16 properties file is limited to Visual Studio 2010 as it is using std::codecvt_utf16<> facet which is only available there.
It should be possible to open files with names that contain, e.g., Japanese now also. This functionality is using Microsoft extension to the standard library and should work for Visual Studio 2005 upwards.
Please test this if you can.
Ticket moved from /p/log4cplus/feature-requests/26/
Diff: