You are not logged in.

#1 2012-05-20 07:09:33

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Convert my PC from ISO-8859-1 to UTF-8?

I am using ISO-8859-1 and have been for a long time... But I think it is time to move to UTF-8... So I was wondering what is the best way to do this? Just change my locale to UTF-8 and then convert my files on a need to basis or?
Also what is the best way to convert a lot of files to UTF-8, both binary files and text files?


Regards,

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#2 2012-05-20 14:49:09

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: Convert my PC from ISO-8859-1 to UTF-8?

There is a Wiki entry on how to set a different locale:

https://wiki.archlinux.org/index.php/Locale

Offline

#3 2012-05-20 14:50:10

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Convert my PC from ISO-8859-1 to UTF-8?

Not really my question but thx...

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#4 2012-05-20 15:05:19

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: Convert my PC from ISO-8859-1 to UTF-8?

If you're going to use ISO-8859-1 as a fallback encoding, you should not need to convert anything. Just enable

en_US.UTF-8 UTF-8  
en_US ISO-8859-1

in /etc/locale.gen and generate locale. Then if you really need to convert a text file into new encoding, you can do this in a variety of ways, e.g. using iconv, directly in a text editor, etc.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-05-20 20:15:31

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: Convert my PC from ISO-8859-1 to UTF-8?

Yes, my thoughts... Thx... smile

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#6 2012-05-20 20:35:07

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Convert my PC from ISO-8859-1 to UTF-8?

There is also convmvfs which is quite useful.
If you think whole filesystem for converting stuff is overkill, you can just use convmv.
(iconv doesn't do filenames, though you could easily do script that uses iconv to rename)

Offline

Board footer

Powered by FluxBB