Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] Qt creator 2.3 problem with C++ source files encoding

[Solved] Qt creator 2.3 problem with C++ source files encoding

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.9k Views
  • 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
    Alicemirror
    wrote on 7 Sept 2011, 20:35 last edited by
    #1

    Hi to all,

    I am developing on several projects at the same time and most of the components are part of the new Qt-Complex 2.0 release so they are fully reusable in all the platforms. Thus I develop using Windows 7 debugging on Symbian devices and Mac when debugging on N950 while the source code of the framework classes is frequently copied between the Windows 7 project folder and the Mac folder.

    After the last update of the SDK including the Qt Creator 2.3 I experience - only on some sources, mostly .h include files - an error when I try to open them on the Qt Creator on Mac after that these was managed by Qt Creator on Windows 7. I receive an encoding error: ignoring this the file is opened as read-only by the IDE.
    If I ask to use some encode by the dialog windows appearing when happens this issue I see a list with a lot of valid encodings. So I assign the encoding that seems to me the most simple and common (one of the ISO proposed) and the file is opened correctly.

    The fact is that I am not sure of what I am doing and if this behavior depends from something I missed. Should I change something in the encoding in the windows or Mac platforms while saving or creating the file? I have not found nothing of similar until I have not got this error (or warning, not sure...)

    Anyone has some idea ? Thanks in advance.

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on 8 Sept 2011, 09:19 last edited by
      #2

      You can try set Default Encoding to UTF-8 in Text Editor options on both platform.

      --
      Vasiliy

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alicemirror
        wrote on 8 Sept 2011, 09:29 last edited by
        #3

        Maybe that the update has lost some default settings ?

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vsorokin
          wrote on 8 Sept 2011, 09:58 last edited by
          #4

          By default I think it set to System default encoding. So I think default system encoding for win difference for mac
          This might be changed in new QtCreator

          --
          Vasiliy

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alicemirror
            wrote on 8 Sept 2011, 10:05 last edited by
            #5

            Thank you Vass, helpful hint :)

            Enrico Miglino (aka Alicemirror)
            Balearic Dynamics
            Islas Baleares, Ibiza (Spain)
            www.balearicdynamics.com

            1 Reply Last reply
            0

            1/5

            7 Sept 2011, 20:35

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved