-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: invalid byte sequence in UTF-8 #37
Comments
Please provide a file/repro @RunningYoung ? Thanks |
me too |
2 similar comments
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:
|
me too 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 ... @dblock |
@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 |
me too |
QR_Encode.h.zip |
@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? |
这个这个问题现在是怎么解决呢? |
It would be useful if the error message would mention the file that contains the error. |
该问题我也遇到过,解决办法是,打开文件,按照UTF-8编码重新保存下即可。至于如何找到哪个文件编码有错误,可以使用fui -v命令,命令遇到有问题的文件时会停止执行 另外,我建议熟悉Ruby语法的朋友可以抽空修复下该问题提一个pr,不要总是依赖作者,作者的工作环境可能根本接触不到非UT-8的编码。大家要多一些开源分享意识 |
No description provided.
The text was updated successfully, but these errors were encountered: