directory listing file does not show Greek names correctly


  1. Posts : 2
    windows 10
       #1

    directory listing file does not show Greek names correctly


    In command prompt:
    List of directory eg dir *.* lists directory file names.
    The greek file names are listed in Greek correctly. BUT when send dir listing to file eg dir *.* >c:\tmp\dirlst.txt and then openning the c:\tmp\dirlst.txt file [B]the file names in Greek are not displayed correctly
    07/31/1997 11:37 PM 10,752 προχειρο αρχειο in GR.doc --- the correct display in command prompt
    07/31/1997 11:37 PM -----> 10,752 §¨¦®œ ¨¦ ˜¨®œ ¦ in GR.doc file in c:\tmp\dirlst.txt file

    Any idea on how to tackle with this? Thanks a lot
      My Computer


  2. Posts : 5,331
    Windows 11 Pro 64-bit
       #2

    What language Windows 10 using?
      My Computer


  3. Posts : 456
    Windows 10
       #3

    Ah, thats because dirlist.txt was not created using unicode. You can use this to convert it to unicode:

    CMD /U /C TYPE c:\tmp\dirlist.txt > dirlist2.txt

    This should write the characters correctly into dirlist2.txt.
      My Computer


  4. Posts : 2
    windows 10
    Thread Starter
       #4

    ricardobohner said:
    Ah, thats because dirlist.txt was not created using unicode. You can use this to convert it to unicode:

    CMD /U /C TYPE c:\tmp\dirlist.txt > dirlist2.txt

    This should write the characters correctly into dirlist2.txt.
    Thank you very much for your reply. I did it but it did not solve the problem. The answer was ???????? ?????? in GR.doc in the dirlst2.txt.
    My desktop runs WIN10 ver 1909 (build 18363535

    - - - Updated - - -

    I have to add a few info concerning the installation of windows.
    - Win10 were installed with English as installation language. Greek was added as second language later.
    - when the prime language is English then even in command prompt the dir listing of a file with greek name is not displayed correctly but with garbage characters in name
    - when primary language is defined Greek then the file name is correct in command prompt listing but not in the file produced by dir *.* >c:\tmp\dirlst.txt command
      My Computer


  5. Posts : 5,331
    Windows 11 Pro 64-bit
       #5

    Open it with Notepad++ to see if its cause by encoding with Notepad.
      My Computer


  6. Posts : 456
    Windows 10
       #6

    What is you system locale set to?

    For quick assess press WINDOWS + R and in the run command type intl.cpl ,1 and on the Administrative tab click on change system locale to see the current system locale.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:29.
Find Us




Windows 10 Forums