mirror of
https://github.com/softinio/Fishee.git
synced 2025-02-22 21:46:05 -08:00
Correct string encoding
This commit is contained in:
parent
398433d42e
commit
41d508c1de
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ func writeFishHistory(to path: String, history: [FishHistoryEntry], backup: Bool
|
||||||
///
|
///
|
||||||
/// - Returns: List of ``FishHistoryEntry`` entries from history file.
|
/// - Returns: List of ``FishHistoryEntry`` entries from history file.
|
||||||
func parseFishHistory(from filePath: String) -> [FishHistoryEntry]? {
|
func parseFishHistory(from filePath: String) -> [FishHistoryEntry]? {
|
||||||
guard let fileContents = try? String(contentsOfFile: filePath) else {
|
guard let fileContents = try? String(contentsOfFile: filePath, encoding: String.Encoding.utf8) else {
|
||||||
print("Failed to open file.")
|
print("Failed to open file.")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue