Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6823861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:50:01+00:00 2026-05-26T21:50:01+00:00

I have a folder name in Japanese. CFileDialog getpathNameis returning some question marks when

  • 0

I have a folder name in Japanese. CFileDialog getpathNameis returning some question marks when the folder is selected. Is there some way to solve it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:50:02+00:00Added an answer on May 26, 2026 at 9:50 pm

    If your app is build with MBCS support rather than Unicode support, the japanese path will be handled correctly only if your “Language for non-Unicode programs” (aka system locale) is set to Japanese, which is the case for your Japanese users but might not be the case for you if you are not Japanese.

    If your system locale is not Japanese, the path is translated to your codepage before it is returned by GetPathName(). It will either contain replacement (?) chars or garbage. Most likely a mix of both.

    Here are a few possibilities available:

    1. Don’t do anything. Your app should work fine for Japanese most users. Or not…

    2. Test your app under a Japanese codepage. To do so, either temporarily change your Language for non-Unicode programs (requires a reboot) or (much easier) test your app under AppLocale. (Note: Yes, it runs fine under Windows 7. This article may help if you have problems).

    3. Switch it to Unicode. According to the size of your codebase, this can be a very tedious task mostly depending on inputs and outputs and whether you use _T("blah") string literals in your code. Of course, there are more aspects to it but these ones are the most important. BTW, all new projects should be done with Unicode support in mind.

    4. Handle this path problem specifically. Since we’re speaking of a file dialog, the whole dialog should be opened as Unicode. Which means you’ll probably have to explicitely call the Unicode version of the underlying Win32 API rather than simply CFileDialog. It’s not so complicated but the risk is that you are only solving the first problem in a row. After you have your Japanese path correctly, you’ll have to deal with Japanese text input by user,… So I don’t think this solution is a good one.

    Solution #2 is certainly the quickest way to identify small issues. Solution #3 is for sure the best one on the long run. But make sure you actually need it because it may be tedious for existing apps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some path c:\server\folderName1\another name\something\another folder\ . How i can extract from there
I have a folder and it's name is v3 . There are jsp files
Is there a way to create a folder (with a specific name) in the
Is there a simple way to get the name of the current folder name
I have this code: class DocumentIdentifier attr_reader :folder, :name def initialize( folder, name )
I have folder home/admin. In this folder there is index.php. When i access to
I have a folder name: 'create_assets', where I store my source files of images
i am using wix 3.0.i have a folder name images.so i want to copy
Suppose I have the following string in php: somedirectory/abc/morethings/[folder name] How can I parse
I have a form like this: <form id=cform> <label>folder name:</label> <input type=text name=Folder[name] />

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.