title: AFNetworking umlauts
body: <p>I am using AFNetworking to communicate with my JSON API. Everything ist fine except of sending requests with german umlauts (i.e. ä ö ü ß).</p>
  
  <p>I am using a shared instance</p>
  
  <pre><code>+(LFMessaging*)shared
  {
      static LFMessaging *sharedInstance = nil;
      static dispatch_once_t oncePredicate;
      dispatch_once(&amp;oncePredicate, ^{
          sharedInstance = [[self alloc] init];
      });    
      return sharedInstance;
  }
  </code></pre>
  
  <p>to send data i use a subclass of AFHTTPClient with this method:</p>
  
  <pre><code>[parameters setValue:cmd forKey:@"cmd"];
  NSMutableURLRequest *apiRequest =
  [self multipartFormRequestWithMethod:@"POST"
                                  path:[NSString stringWithFormat:@"http://%@%@", _domain, _target]
                            parameters:(NSDictionary*)parameters
             constructingBodyWithBlock: ^(id &lt;AFMultipartFormData&gt;formData) {
                 //TODO: attach file if needed
             }];
  
  AFJSONRequestOperation* operation = [[AFJSONRequestOperation alloc] initWithRequest: apiRequest];
  operation.JSONReadingOptions = NSJSONReadingMutableContainers;
  
  [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
  ...
  </code></pre>
  
  <p>just when a parameter with a german umlaut ist passed the api seems to break. the server does not receive the correct string.</p>
  
  <p>if the server sends umlauts in a json result everything is fine.</p>