By Push Studio
I’ve migrate a website from hostgator to digital ocean and I have filenames like: 11-01-03-La-Gr#U00e1fica-Completa.jpg and in hostgator I’ve see it like: 11-01-03-La-Gráfica-Completa.jpg
I’ve tried to change it within the console like: convmv -r -f ISO-8859-1 -t UTF-8 . convmv -r -f ascii -t UTF-8 . and so… But I can’t change it. I don’t know what to do, the are almost 3000 files like that. Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Here’s a summary from a solution by Sakshi’s Oracle blog that works for Ubuntu:
sudo locale-gen es_ES.UTF-8
sudo dpkg-reconfigure locales
then edit /etc/default/locale and add LC_ALL and LANGUAGE with values “es_ES.UTF-8”, like this
LANG=es_ES.UTF-8
LC_ALL=es_ES.UTF-8
LANGUAGE=es_ES.UTF-8
Now try the locale command again.
Thanks to both. Now I can see it right in terminal / console… but apache is still with the error… And I’ve added the line:
AddDefaultCharset UTF-8
or
AddDefaultCharset es_ES.UTF-8
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.