[Qt-creator] Qt Commercial Mingw - QtCreator cannot decode my source file with UTF-8 encoding

Orgad Shaneh orgads at gmail.com
Wed Apr 3 21:12:57 CEST 2013


On Wed, Apr 3, 2013 at 10:10 PM, Pete Klemm <pete.klemm at esysr.com> wrote:

>
> On 4/3/2013 1:41 PM, Orgad Shaneh wrote:
>
> On Wed, Apr 3, 2013 at 8:42 PM, Pete Klemm <pete.klemm at esysr.com> wrote:
>
>> I installed qt 5.0.1 commercial mingw and I now get this error
>> when trying to edit my project:
>>
>> Error: Could not decode "iobrd.cpp" with "UTF-8" -encoding. Editing not
>> possible.
>>
>> This used to work with qt 4.7.4 opensource mingw.
>>
>> Is this possibly due to missing unicode support in the commercial
>> release??
>>
>> Any thoughts??
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>
>  Hello,
>
>  The default encoding was changed to UTF-8 in 2.6. See QTCREATORBUG-7420<https://bugreports.qt-project.org/browse/QTCREATORBUG-7420> and
> the actual change <https://codereview.qt-project.org/34305>.
>
>  To fix this, open Tools -> Options -> Text Editor -> Behavior and change
> Default encoding to System.
>
>  - Orgad
>
> Thanks for the reply, however I already have Tools -> Options -> Text
> Editor -> Behavior set to use UTF-8 as the
> default encoding. The problem is the editor wants me to change the
> encoding to something other than UTF-8. If
> I force the text file to Latin1 I am able to search and replace as in
> 4.8.4 and no longer get the error message.
>
> When I get the error, UTF-8 is not even presented as an option for the
> encoding. As previously, stated this did
> not exist in Qt Creator 2.6.0 from qt-opensource-4.8.4.
>
>
Hi,

I didn't mean setting it to UTF-8. That's the (new) default. I suggested
changing it to System (the default in previous versions).

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130403/c1897b2e/attachment.html>


More information about the Qt-creator mailing list