Read Unicode INI files

Posted on 2004-11-07
Last Modified: 2013-12-03
I have a unicode ini file, and GetPrivateProfileStringW() does not recognize all the special characters in it. Is there a solution to this, except fror reading myself manually the ini file ?

Question by:WxW
    1 Comment
    LVL 16

    Accepted Solution

    GetPrivateProfileStringW() is the unicode version of GetPrivateProfileString() (for compatibility purposes, I guess). This means it accepts unicode strings as params. BUT, unfortunatelly, this does not mean it will attempt to read an unicode ini file (as I discovered WritePrivateProfileStringW does not write an unicode text in ini).
    So, you'll have to do it manually.

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Suggested Solutions

    This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
    In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 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

    15 Experts available now in Live!

    Get 1:1 Help Now