broken encoding in some stations
with thanks to lis: https://mk.catgirlsfor.science/notes/9en6jb2ig8
This commit is contained in:
parent
db71361481
commit
59d807a2d7
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ fn fetch_data() -> Result(String, hackney.Error) {
|
||||||
let assert Ok(request) = request.from_uri(uri)
|
let assert Ok(request) = request.from_uri(uri)
|
||||||
let assert Ok(response) = hackney.send(request)
|
let assert Ok(response) = hackney.send(request)
|
||||||
|
|
||||||
Ok(response.body)
|
// some ü are corrupted for some reason
|
||||||
|
Ok(string.replace(response.body, "<EFBFBD>", "ü"))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_csv() -> List(#(String, String)) {
|
fn read_csv() -> List(#(String, String)) {
|
||||||
|
|
Loading…
Reference in a new issue