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. The file contains a character that cannot be represented in the current code page

The file contains a character that cannot be represented in the current code page

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionhelp
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.
  • N Offline
    N Offline
    Nacho Chip
    wrote on last edited by
    #1

    Hello, I am trying to convert my project to use Visual C++ 2005. However, when I compile my project, I get a lot of warning message like this, c:\dxsdk\include\d3d9types.h(1385) : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss How can I fix this? Thanks!

    Nacho

    R H 2 Replies Last reply
    0
    • N Nacho Chip

      Hello, I am trying to convert my project to use Visual C++ 2005. However, when I compile my project, I get a lot of warning message like this, c:\dxsdk\include\d3d9types.h(1385) : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss How can I fix this? Thanks!

      Nacho

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Save the file d3d9types.h in unicode encoding.


      Nobody can give you wiser advice than yourself. - Cicero

      N 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        Save the file d3d9types.h in unicode encoding.


        Nobody can give you wiser advice than yourself. - Cicero

        N Offline
        N Offline
        Nacho Chip
        wrote on last edited by
        #3

        Is this the only way, since I have a lot of other files have similar problems, is it means that I need to re-save all those files? Thanks!

        Nacho

        R 1 Reply Last reply
        0
        • N Nacho Chip

          Is this the only way, since I have a lot of other files have similar problems, is it means that I need to re-save all those files? Thanks!

          Nacho

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Nacho Chip wrote:

          is it means that I need to re-save all those files?

          Yes. Save all such files in unicode encoding. You must have entered unicode characters into those files and so you will need to save it in unicode encoding to avoid data loss.


          Nobody can give you wiser advice than yourself. - Cicero

          1 Reply Last reply
          0
          • N Nacho Chip

            Hello, I am trying to convert my project to use Visual C++ 2005. However, when I compile my project, I get a lot of warning message like this, c:\dxsdk\include\d3d9types.h(1385) : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss How can I fix this? Thanks!

            Nacho

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            See List of bugs that are fixed in Visual Studio 2005 Service Pack 1[^] and see 912790 on that page


            WhiteSky


            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