I am using Node.js and Express.js 3.x.
As one of our authorization headers we are passing in the username. Some of our usernames contain umlaut characters: ü ? ? and the likes of.
For usernames with just 'normal' characters, all works fine. But when a j?rg tries to make a request, the server doesn't recognize the umlaut character in the header.
Trying to simulate the problem I:
- Created some tests that set the username header with the umlaut character. These tests pass, they are able to pass in the umlaut correctly.
- Used 'postman' and 'advanced rest client' Chrome extensions and made the request manually against the server - in this case it failed. I saw the server is unable to recognize the umlaut character, it juts interpreted it as some sort of
?
.
Is there any limitation on custom HTTP header values characters that forbids using these kind of characters? Any idea why it would work in tests but not from my browser extension? Am I forgetting to set some character set somewhere?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…