Joke Collection Website - Joke collection - JavaScript gbk to utf 8 encoding problem
JavaScript gbk to utf 8 encoding problem
The encodeuricomponent and decodeuricomponent functions
The former is encoding, and the latter is decoding.
It's not about gbk to utf-8, remember, don't say that next time, so as not to make a joke
Example:
alert(encodeuricomponent('I One kick'));
alert(decodeuricomponent(encodeuricomponent('I have one kick')));
- Previous article:Do you have any information about Dickens?
- Next article:How did the name "Randeng Temple" come from?
- Related articles
- Short message jokes are hilarious.
- It's funny to eat chicken by name
- What are the super good-looking Thai dramas recommended?
- A passage about encouraging friends to study hard
- Any English quotes or jokes are welcome
- What is the treatment of new employees of New Oriental Education Group? What is the development prospect? Is the threshold high?
- Stop, stop, stop. What is the title of the song?
- Find a joke that can make people laugh, the more fun the better?
- China's classical jokes
- Who has a joke with a typo?