Solved How to change a single Qt file to utf-8 encoding
-
I am a new developer for Qt, when I build my project in Qt,it's show error:
../FUEditor/algorithm/FreeImage/CFreeImage.cpp:8:10: fatal error: UTF-16 (LE) byte order mark detected in '../FUEditor/algorithm/FreeImage/../util.h', but encoding is not supported
#include "../util.h"
^
2 warnings and 1 error generated.it's seem my util.h is encodeing is UTF-16 (LE), how change the util.h encoding to UTF-8,thanks a lot!
-
@Princein Did you try to open the file in QtCreator, copy the content, delete the content and paste it (and save)?
-
Hi
Try make new file in creator and paste the util.h content to it.
or try online converter
https://www.fileformat.info/convert/text/utf2utf.htm -
@mrjj Thanks, it solved!
-
@Princein if your issue is solved, please don't forget to mark your post as such! Thanks.
-
@Pablo-J.-Rogina I sloved the question according @mrjj suggestiuon : Try make new file in creator and paste the util.h content to it. then it work for me.
-
@Princein I understand you solved your issue with help from the community, so please mark your post as SOLVED. Thanks