broken encoding in some stations

with thanks to lis: https://mk.catgirlsfor.science/notes/9en6jb2ig8
This commit is contained in:
stuebinm 2023-05-11 23:10:00 +02:00
parent db71361481
commit 59d807a2d7

View file

@ -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)) {