Skip to content

Instantly share code, notes, and snippets.

@andlju
Created December 30, 2011 18:04
Show Gist options
  • Save andlju/1540845 to your computer and use it in GitHub Desktop.
Save andlju/1540845 to your computer and use it in GitHub Desktop.
Unicode problem with Nancy 0.9
public class TestModule :NancyModule
{
public TestModule()
{
Get["/failing"] = _ => "åäö";
Get["/working"] = _ =>
{
Response resp = "åäö";
resp.ContentType += "; charset=utf-8";
return resp;
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment