-2

I am trying to make friendly url from title. I find out many solutions but it has still problem with unicode character. eg: 'xin chào' in vietnamese

I saw https://sluggenerator.com/ was OK. Could anyone helps me to do like this by javascript.

Thanks in advance!

Fares M.
  • 1,538
  • 1
  • 17
  • 18
M999
  • 25
  • 4

1 Answers1

0

Refer to the answers of this question:

Efficiently replace all accented characters in a string?

The examples in the above page are for other languages than vietnamese, with much less types of accented characters, so I would advise you to write some special letter-substitution code suited for your language, which is not hard, given you have a starting point as the ones in the answers for the question above.

Community
  • 1
  • 1
Marcos Sandrini
  • 400
  • 2
  • 10