I have an entity and controller which has a unicode name it and I am defining it like below:
var categories = builder.EntitySet<üCategory>("üCategories");
I have a corresponding controller for it:
public class üCategoriesController : ApiController
{
Models.NorthwindEntities db = new Models.NorthwindEntities();
public IEnumerable<üCategory> Get()
{
return db.Categories;
}
.....
I made a request from the browser with this url:
http://localhost:19979/üCategories
Expected: successful response with list of categories
Actual: 404 Not found
I debugged a bit and at the controller selector, segment parser is using relative uri's OriginalString(which is "%C3%BCCategories") to find the entity set and hence its unable to find it resulting in 404 NOT found.
var categories = builder.EntitySet<üCategory>("üCategories");
I have a corresponding controller for it:
public class üCategoriesController : ApiController
{
Models.NorthwindEntities db = new Models.NorthwindEntities();
public IEnumerable<üCategory> Get()
{
return db.Categories;
}
.....
I made a request from the browser with this url:
http://localhost:19979/üCategories
Expected: successful response with list of categories
Actual: 404 Not found
I debugged a bit and at the controller selector, segment parser is using relative uri's OriginalString(which is "%C3%BCCategories") to find the entity set and hence its unable to find it resulting in 404 NOT found.