Jump to content

Conversion of Japanese characters to Western characters


Siguana

Recommended Posts

In my PrestaShop 8 installation, I am using an API to import products with Japanese characters through code in my store. The issue arises with the creation of the friendly URL, which I need to be saved with Western characters.

If I manually add the product from the administration, there is no problem because the conversion from Japanese characters to Western characters is automatically performed when saving the product.

If I am not mistaken, PrestaShop uses the str2url() function to perform this operation, but this function is in the \js\admin.js file, and the API I am working with is accessed from PHP. How could I perform this conversion from PHP?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...