I have a product in woocommerce that is stored in chinese language,
The product has different color variations, woocommerce seems to encode
the attribute taxonomy for the color attribute. in a english language product it would simple store the taxonomy as pa_color
, but in my chinese language product, woocommerce store the taxonomy as pa_191386aef4bc441e
, the letters and numbers after pa_
are an encoded form
of the string 颜色
which translates to color in english, hence the term taxonomy pa_191386aef4bc441e
simply means pa_color
in english.
Am trying to figure out how woocommerce encoded the chinese string 颜色
to 191386aef4bc441e
so that i can decode the text back to a valid chinese string, the final goal is to translate the product attributes to english and replace the chinese values with replaced english values.
How did woocommerce encode the product attribute so that i can decode it back to the original string ?
Look at at the picture below, the text pointed to by an arrow is the the chinese string that gets stored as pa_191386aef4bc441e
Below is how the product data looks on the woocommerce database.
terms