How to change a single Qt file to utf-8 encoding
Solved
General and Desktop
-
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!
-
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 -
@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.