I'm having an issue with a NodeJS REST api created using express. I have two calls, a get and a post set up like this:
router.get('/:id', (request, response) => {
console.log(request.params.id);
});
router.post('/:id', (request, response) => {
console.log(request.params.id);
});
now, I want the ID to be able to contain special characters (UTF8). The problem is, when I use postman to test the requests, it looks like they are encoded very differently:
GET http://localhost:3000/api/â
outputs â
POST http://localhost:3000/api/â
outputs â
Does anyone have any idea what I am missing here?
I must mention that the post call also contains a file upload so the content type will be multipart/form-data