Static GitHub Issues

[946] Different encoding behavior between browser & node.

prev: Module build failed: Error: No ESLint configuration found.
next: nuxt-link params refresh page params undefined.

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?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c814">#c814</a>)</em></sub></div>