I need to create GET request like this:
https://public-api.nazk.gov.ua/v1/declaration/?q=Чер
https://public-api.nazk.gov.ua/v1/declaration/?q=Володимирович
Last characters after = are Cyrillic symbols
let hostURL = "https://public-api.nazk.gov.ua/v1/declaration/?q="
let url = URL(string: (hostURL + searchBar.text!))!
I have a run time error because it is impossible to force unwrap Cyrillic symbols. How can I avoid this issue?