Home

Issue: 946

Different encoding behavior between browser & node.

[issue link]

Hi,

I used axios to make requests to an API server.
The request url sent in browser & development server is correct, which is only encoded once (by axios, I think).
However, the request url sent in production server is wrong, which is encoded twice.

For example, I have a request url with a query

父亲节

which is encoded correctly into (in browser & development server by axios)

%E7%88%B6%E4%BA%B2%E8%8A%82

but in production server, the encoded string will be encoded again into (not sure by whom)

%25E7%2588%25B6%25E4%25BA%25B2%25E8%258A%2582

I’m using nuxt build and nuxt start command to run the Nuxt render server.

Any idea about what could be wrong?

This question is available on Nuxt.js community (#c814)