Unicode Path to Multibyte correct

Posted on 2010-11-25
Last Modified: 2012-05-10
a question about Paths: I have a Path with a greek word inside. This I have to pass to a DLL with Multibyte. But nothing is working. From:
C:\Users\¿¿¿S¿¿S\Desktop    <----sorry, please see attached image
I got:
Is it somehow possible to bring a Unicode String to A MultiByte DLL?
I read about "GetShortPathName" and functions like SetFileApisToOEM() or SetFileApisToANSI(), but I have no idea how. Any help is welcome.

Ocrana greek path
Question by:Ocrana
LVL 86

Accepted Solution

jkr earned 500 total points
ID: 34213779
'WideCharToMultiByte()' ( is what you would use here, e.g.
wchar_t awcPath[MAX_PATH] = L"c:\\path";

char acPath[MAX_PATH];

// codepage 869 is 'OEM Modern Greek', see ("Code Page Identifiers")


Open in new window


Expert Comment

ID: 34215632
Please refer the below link, may be it is useful,

Author Closing Comment

ID: 34220360
ot the right codepage but easy to find. Thanks

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
object oriented javascript web form 8 76
Best book to learn C++ 4 55
Unable to start eclipse ? 17 87
Currency Conversion? 1 39
This is an explanation of a simple data model to help parse a JSON feed
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now