Results 1 to 39 of 39

Thread: [RESOLVED] FindFirstFile(W) Unicode problem with the windows non-unicode settings

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    Resolved [RESOLVED] FindFirstFile(W) Unicode problem with the windows non-unicode settings

    Dev-PC: Windows 7, VB6SP6

    With my app i use the API FindFirstFileWide to enum files with unicode characters in the name from a folder.

    I get the correct unicode file names if the regional settings for non-unicode programs are set to "English" or another non-unicode-language:

    Name:  Screenshot - 06.08.2021 , 11_23_07.png
Views: 1906
Size:  10.4 KB

    If i change the regional settings for non-unicode programs to "Chinese" the file names from the API FindFirstFileWide are all wrong:

    Name:  Screenshot - 06.08.2021 , 11_14_57.png
Views: 1781
Size:  52.6 KB

    Does anyone know how to fix this problem and get the real file names?

    Attached you will find a test project with the chinese file names.
    The project will need VBCCR17.OCX to display the unicode characters in the textbox.
    Attached Files Attached Files
    Last edited by Mith; Aug 6th, 2021 at 12:25 AM. Reason: added info at the title

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width