Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Converting ASCII file format to unicode file format.

Converting ASCII file format to unicode file format.

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahmad Zubair
    wrote on last edited by
    #1

    Hello Friends. I want to made an exe file in c++/MFC that reads from an autorun.inf file. Now if the format of autorun.inf is ASCII, then it can't be read correctly by our exe. if its format is unicode, then it displays the correct information. Now generally the format of autorun.inf/autorun.ini is ASCII. My problem is that i want to convert the format of "autorun.inf" from ASCII to Unicode manually. i search for this on different forums but i can't get any help. Can any body help me. I shall be very thankful to all of You. Thanx in Advance. :-O

    S K 2 Replies Last reply
    0
    • A Ahmad Zubair

      Hello Friends. I want to made an exe file in c++/MFC that reads from an autorun.inf file. Now if the format of autorun.inf is ASCII, then it can't be read correctly by our exe. if its format is unicode, then it displays the correct information. Now generally the format of autorun.inf/autorun.ini is ASCII. My problem is that i want to convert the format of "autorun.inf" from ASCII to Unicode manually. i search for this on different forums but i can't get any help. Can any body help me. I shall be very thankful to all of You. Thanx in Advance. :-O

      S Offline
      S Offline
      sudhir_Kumar
      wrote on last edited by
      #2

      http://www.codeproject.com/KB/files/ANSI-UNICODE_conversion.aspx[^] May be this can help you.

      -@SuDhIrKuMaR@-

      1 Reply Last reply
      0
      • A Ahmad Zubair

        Hello Friends. I want to made an exe file in c++/MFC that reads from an autorun.inf file. Now if the format of autorun.inf is ASCII, then it can't be read correctly by our exe. if its format is unicode, then it displays the correct information. Now generally the format of autorun.inf/autorun.ini is ASCII. My problem is that i want to convert the format of "autorun.inf" from ASCII to Unicode manually. i search for this on different forums but i can't get any help. Can any body help me. I shall be very thankful to all of You. Thanx in Advance. :-O

        K Offline
        K Offline
        krmed
        wrote on last edited by
        #3

        Since you say you want to do it manually, you could just open it in notepad and then SaveAs (choosing Unicode). Hope that helps.

        Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

        A 1 Reply Last reply
        0
        • K krmed

          Since you say you want to do it manually, you could just open it in notepad and then SaveAs (choosing Unicode). Hope that helps.

          Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

          A Offline
          A Offline
          Ahmad Zubair
          wrote on last edited by
          #4

          Thanks a lot dear friend for your reply. But i want to ask you one question i.s. what is notepad, and where can i find it?

          K 1 Reply Last reply
          0
          • A Ahmad Zubair

            Thanks a lot dear friend for your reply. But i want to ask you one question i.s. what is notepad, and where can i find it?

            K Offline
            K Offline
            krmed
            wrote on last edited by
            #5

            From the Start menu (Windows), choose Run, then type in "notepad" (without the quotes) and press return. You can also find an enhanced version by using google to search for Notepad++. Hope that helps.

            Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups