MobileNativeFoundation / XCLogParser

Tool to parse Xcode and xcodebuild logs stored in the xcactivitylog format
Apache License 2.0
1.75k stars 125 forks source link

【discuss】Should the log file loaded with encoding UTF-8 ? #197

Closed qmkCamel closed 11 months ago

qmkCamel commented 11 months ago

We use the XCLogParser to parse our team‘s xcactivitylog, when we read the parsed result found some Garbled text. I scan the repo found the follow code, it seems to load the log file with encoding ascii. Would the UTF-8 encoding be a better choice?

https://github.com/MobileNativeFoundation/XCLogParser/blob/cd41cfc2f910b19b163919c5ab2afc399d7ad7e1/Sources/XCLogParser/loglocation/LogLoader.swift#L29