title: Characters Å Ä Ö is not getting displayed in my DDL, how can I tell restclient to utilize a specific charset?
body: <p>Before I start here is the problem. It should be like this:</p>
  
  <p>Björn Nilsson, instead its displaying strange special characters, all values that have  characters Å, Ä and Ö  becomes like this.</p>
  
  <p><img src="https://i.stack.imgur.com/Fv1Q1.png" alt="enter image description here"></p>
  
  <p>I fill my DDL with values from API in XML format that has all the values, and we are also using Linq2Rest for that.</p>
  
  <p>This how the process looks like</p>
  
  <pre><code> private readonly RestContext&lt;ADConsultants&gt; restContext;
  
  public ConsultantContext(Uri uri, Format format)
  {
      restContext = new RestContext&lt;ADConsultants&gt;(GetRestClient(uri, format), GetSerializerFactory(format));
  }
  public enum Format
  {
      Pox,
      Json
  }
  
  private static readonly IEnumerable&lt;Type&gt; knownTypes = new[] {typeof (ADConsultants)};
  
  public static IRestClient GetRestClient(Uri uri, Format format)
  {
      switch (format)
      {
          case Format.Pox:
              return new XmlRestClient(uri);
          case Format.Json:
              return new JsonRestClient(uri);
          default:
              throw new NotImplementedException();
      }
  }
  private static ISerializerFactory GetSerializerFactory(Format format)
  {
      switch (format)
      {
          case Format.Pox:
              return new XmlSerializerFactory(knownTypes);
          case Format.Json:
              return new JsonNetSerializerFactory();
          default:
              throw new NotImplementedException();
      }
  
  }
  public IQueryable&lt;ADConsultants&gt; Consultant
  {
      get { return restContext.Query; }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>This is my JsonNetSerializerFactory class:</p>
  
  <pre><code>public class JsonNetSerializerFactory :ISerializerFactory 
  {
      public ISerializer&lt;T&gt; Create&lt;T&gt;()
      {
          return new JsonNetSerializer&lt;T&gt;();
      }
      public class JsonNetSerializer&lt;T&gt; : ISerializer&lt;T&gt;
      {
          public T Deserialize(string input)
          {
              return JsonConvert.DeserializeObject&lt;T&gt;(input);
          }
  
          public IList&lt;T&gt; DeserializeList(string input)
          {
              return JsonConvert.DeserializeObject&lt;IList&lt;T&gt;&gt;(input);
          }
      }
  }
  </code></pre>
  
  <p>And this is inside my controller:</p>
  
  <pre><code>var consultants = new ConsultantContext(
          new Uri("http://adress:port/api/consultants"),
                  ConsultantContext.Format.Json)
                      .Consultant
                      .Where(x =&gt; x.Office == "Örebro")  
                      .OrderBy(x =&gt; x.DisplayName)  
                      .ToList() 
                      .Select(x =&gt; new
                      {
                          name = x.DisplayName
                      });
  </code></pre>
  
  <p>I did a test by doing this:</p>
  
  <pre><code>name = "åäö"
  </code></pre>
  
  <p>and it worked fine, ddl values was "åäö"</p>
  
  <p>Any help is appreciated on how to fix so characters Å Ä Ö works fine as values in my DDL.</p>
  
  <p>HTTP header is utf-8, my html content have it aswell. It must be the XML that need to be set to a specific charset, How can I do that?</p>
  
  <p>Thanks in advance!</p>