LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [TOTD] recode

[ILUG] [TOTD] recode

P at draigBrady.com P at draigBrady.com
Fri Aug 20 16:54:54 IST 2004


#show available conversions
recode -l | less

#windows to unix with default charmap
recode windows-1252.. file_to_change.txt

#iso-8859-1 to utf-8
recode latin-1..utf-8 < file.txt > utf8.txt

#Base64 encode
recode ../b64 < file.txt > file.b64

#encode required chars for HTML
recode ..HTML file.html

#show table of characters
recode -lf windows-1252

#show what the character is in charmap
echo -n 0xA4 | recode l1/x1..dump

#show utf-8 encoding.
#Remove trailing /x to view on utf-8 terminal
echo -n 0x20AC | recode ucs-2/x2..utf-8/x

-- 
Pádraig Brady - http://www.pixelbeat.org
--



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell