Menu

#176 Reading UTF-16 properties file

v1.1.x
closed
5
2014-10-09
2011-07-21
Anonymous
No

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.

Discussion

  • Václav Haisman

    Václav Haisman - 2011-07-21
    • assigned_to: nobody --> wilx
     
  • Václav Haisman

    Václav Haisman - 2011-08-14

    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.

     
  • Václav Haisman

    Václav Haisman - 2013-07-14

    Ticket moved from /p/log4cplus/feature-requests/26/

     
  • Václav Haisman

    Václav Haisman - 2013-08-14
    • labels: --> enhancement
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,10 +1,9 @@
    -At the moment reading UTF-16 properties file is completely unsupported.
    -I would be nice to have this feature build in.
    +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.
    +~~~~~
    +
    +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.
    
    • Group: --> future
     
  • Václav Haisman

    Václav Haisman - 2013-08-14
    • labels: enhancement --> enhancement, implemented
    • status: open --> closed
    • Group: future --> v1.1.x
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.