Jichao
Jichao

Reputation: 41805

How to set default file encoding of source file in qt creator?

There is no enter image description here default file encoding option in my qt creator. Therefore, every new created file is inherited from the system encoding, which is gbk(cp936) on my windows box. But I want to set the default file encoding of the source files to utf-8. How?

Thanks.

Upvotes: 4

Views: 10697

Answers (1)

Jichao
Jichao

Reputation: 41805

I have found that option in the text-editor plate.enter image description here

Note: after changing the encoding to "UTF-8", it may still display "System" if your system encoding is UTF-8. The Qt creator documentation states "Default encoding field still displays the value System if the default system encoding is set to UTF-8".

Upvotes: 7

Related Questions