1

I have got a Node.js application which uses umlauts in some of its urls. When I run node.js locally, everything works fine.

Now I want to deploy this application to Heroku. Running Heroku's foreman locally works fine as well, but once I deploy and try to access any of the umlaut urls, I get an "500 Internal server error".

Does Heroku support umlauts in urls when running Node.js? If so, any idea what I might be doing wrong?

1
  • Problem solved (or worked around ;-)), by simply avoiding umlauts. Commented Aug 25, 2012 at 5:04

1 Answer 1

0

To use umlauts (or other special characters) you need to "url-encode" or "percent encode" the characters so they can be used properly in URLs. In your case the umlauts could be substituted with the code %d6 (see this chart), but you may be more interested in the javascript function encodeURIComponent, which will let you encode things programatically. See also this answer.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.