Fastest way to encode cyrillic letters for url

前端 未结 2 993
旧时难觅i
旧时难觅i 2021-02-07 10:33

If you copy the link below into the browser

http://be.wikipedia.org/wiki/Беларусь 

it will show the Wiki article. But once you want to copy th

2条回答
  •  误落风尘
    2021-02-07 11:05

    I guess encodeURI(string) should be what you are looking for. Just check out already existing answers to the same question e.g. here!

提交回复
热议问题