title: handling non-ascii logins when accessing RESTful django from iOS with http auth
body: <p>I have the following architecture: iOS client uses NSURLConnection with <code>willSendRequestForAuthenticationChallenge</code> to auth against Django-rest-framework based REST service. It works fine when login is ascii only, but when I use non-ascii letters, it even does not send <code>HTTP_AUTHORIZATION</code> !</p>
  
  <p>That is probably because RFC does not cover non-ascii chars in HTTP basic auth.</p>
  
  <p>What is the best approach to solve it? Will digest auth help? </p>
  
  <p>I can't encode login to url, since I do not want it to be displayed in server logs. And I also want to stay with <code>willSendRequestForAuthenticationChallenge</code>.</p>
  
  <p>PS: I can use form-based auth or json-based on Django side (by implementing <code>BaseAuthentication</code>) but on iOS I will need to create <code>NSURLAuthenticationChallenge</code> which seems to be a big deal</p>