Menu

File for Windows Unicode

Help
2009-08-17
2012-07-26
  • Sela Ferdman

    Sela Ferdman - 2009-08-17

    Hi all,

    Does file function (magic_file) support file name in Unicode?

    Thanks in advance,
    Sela

     
    • GnuWin

      GnuWin - 2009-08-17

      I don't think it supports Unicode, since it hasn't been compiled with wide char's as the default. However, but I haven't done any testing, I suppose it supports file names in the default codepage of the MS-Windows OS that is installed on the computer you use. For example, on European, non-English, systems, it should be able to support file names with Latin1 characters, such as è and ë.

       
    • Sela Ferdman

      Sela Ferdman - 2009-08-18

      Thanks, I have found a workaround: you can use magic_buffer instead of magic_file and take care of Unicode file names yourself.

       
MongoDB Logo MongoDB