Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node js Convert from utf-8

I have a product names in mysql but the some names are with Ö Ə Ü etc. I have to convert this chars to O E U and write to the jpeg file name. I try to use utf8 package but it convert to üzlük for example. How can I do this?


1 Answers

Please note that this would be a one-way operation, a Ö is not the same as an O. Instead of using the product names themselves, I would rather create a MD5 hash from them and use the hashes as filenames.

like image 71
Rob Avatar answered Apr 02 '26 12:04

Rob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!