fui
fui copied to clipboard
error: invalid byte sequence in UTF-8
Please provide a file/repro @RunningYoung ? Thanks
me too
me too
me too
error: invalid byte sequence in UTF-8
@wujiegoodluck @zhongqing05 @jiehailong @WeijunDeng someone please add a test with a repro,
me too
+1
To the next person about to add a +1:
- Write a test that reproduces the problem.
- Fix the problem.
- Submit a PR.
me too error: invalid byte sequence in UTF-8
My project has some .rb files , I don't know if it's because of that。
@xiaoyaoknight Can you please post a file at least with which this can be reproduced?
Checking derivedData/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ZHTableview.build/DerivedSources/ZHTableview-Swift.h ... Checking derivedData/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ZHTableview.build/Objects-normal/x86_64/ZHTableview-Swift.h ... Checking derivedData/Build/Intermediates.noindex/PrecompiledHeaders/DDMall-Bridging-Header-swift_3K0PQHEOM6MA9-clang_2A97GP9MCLM9K.pch ... error: invalid byte sequence in UTF-8
@dblock My project is swift and oc mixed mode, the project directory execution fui -v find reported this error
@wuyj Can you please upload the last file, derivedData/Build/Intermediates.noindex/PrecompiledHeaders/DDMall-Bridging-Header-swift_3K0PQHEOM6MA9-clang_2A97GP9MCLM9K.pch somewhere (or add a unit test with this file and PR it)?
Let me end this thread. This is caused by the non-UTF-8 encoding system, such as GB18013 which may be default Chinese Encoding System on Windows. You should reopen those files with the correct encoding system and then save it in UTF-8.
Don't know how to solve it with code. @dblock
编码错了,这些有问题的文件都是 GB18013 格式的,手动转成 UTF-8 就好了,具体是哪个文件用 --verbose 看,转的话 VSCode 就可以。转完了再跑就行了
Sample files:
@tepmnthar I can take a stab at adding support for this in fui. I think we should at least handle the error gracefully by showing which file is problematic. We could also detect what encoding the file is in. Turn your sample into a spec to start?
Glad to hear that! @dblock It's difficult for me to write a long paragraph in English. It may cause misunderstanding. Would help if you need to translate it to Chinese.
me too
QR_Encode.h.zip @dblock this file causes error: invalid byte sequence in UTF-8
@siyou325 Thanks, please turn this into a spec and a fix.
@dblock I'm sorry for that i can't help you,because i just try fui and found this error😊
I also encountered the same problem, is there a solution?
Let me end this thread. This is caused by the non-UTF-8 encoding system, such as GB18013 which may be default Chinese Encoding System on Windows. You should reopen those files with the correct encoding system and then save it in UTF-8.
Don't know how to solve it with code. @dblock
编码错了,这些有问题的文件都是 GB18013 格式的,手动转成 UTF-8 就好了,具体是哪个文件用 --verbose 看,转的话 VSCode 就可以。转完了再跑就行了
Sample files:
这个这个问题现在是怎么解决呢?