title: How convert string to utf-8? (Swift, Alamofire)
body: <p>Me need so that Alamofire send utf-8 parameters to my server, now he transmits English characters normally, but Russian characters as hieroglyphs. After checking the encoding I found that it is used maccyrillic characters.</p>
  
  <p>let parameters: Parameters = ["username": login.text!, "password": password.text!]</p>
  
  <pre><code>        Alamofire.request("link ti site", method: .post, parameters: parameters).responseJSON { response in
  
              switch response.result {
              case .success:
  
                  let json = JSON(response.result.value)
  
              case .failure( _):
  
                  var errorString = "NULL"
  
                  if let data = response.data {
                      if let json = try? JSONSerialization.jsonObject(with: data, options: []) as! [String: String] {
                          errorString = json["error"]!
                      }
                  }
  
              }
  
          }
  </code></pre>
  
  <p>Need your help. Thanks you.</p>