how to support UTF8 (japanese, arabic, spanish, …) URL's in PHP

前端 未结 4 949
既然无缘
既然无缘 2020-12-15 14:32

For a web application, we need to link to some user generated content. A users types in a title for e.g. a product and we generate an SEO friendly url for that product:

4条回答
  •  失恋的感觉
    2020-12-15 15:21

    You might need to use IDNA encoding on the non-ASCII portion of the URL.

    http://en.wikipedia.org/wiki/Internationalized_domain_name

提交回复
热议问题