LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2015, 02:04 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,618

Rep: Reputation: 251Reputation: 251Reputation: 251
Can I reconcile UTF-8 with ISO-8859-15?


I have lots of documents in ISO-8859-15. When I use UTF-8 the high-bit characters are displayed as unknown (reverse-illumination question marks). Is there a way to get UTF-8 to display them correctly?
 
Old 04-30-2015, 02:20 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 34
Posts: 3,693

Rep: Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075
ISO-8859-15 and UTF-8 are different character encodingss. Any given file will only be one or the other, not both. You can convert between them using iconv.
 
Old 05-02-2015, 09:38 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,618

Original Poster
Rep: Reputation: 251Reputation: 251Reputation: 251
At some point the Linux kernel started making the default character encoding UTF-8 instead of ISO-8859. I have hundreds of thousands of documents with high-bit-set ISO-8859 characters. Naive users of the VT default encoding display them as unknown characters. I added 'vt.default_utf8=0' as an argument to the kernel to turn this off.

It appears that UTF-8 displays these characters as unknown. I would like to import ISO-8859 for the characters 80-FF. I hoped to find a character set in /usr/share/kbd/consolefonts but didn't. If I composed my own (I would have to figure this out.) could I make this happen?
 
Old 05-03-2015, 12:00 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,862

Rep: Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166Reputation: 2166
I think there comes a time when you have to bite the bullet and convert files from obsolete encodings. If they're plain text, then you can batch-process them with iconv. When I adopted Linux, I had hundreds of files that had to be manually converted, as my encoding wasn't recognised!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change between UTF-8 and ISO-8859 without rebooting? malloc Slackware 7 01-22-2013 01:44 AM
iconv us-ascii to UTF-8 or ISO-8859-15 m4rtin Linux - Software 2 02-18-2009 08:34 PM
How to switch from ISO-latin1( 8859-1) to UTF-8 and reciprocally? xpucto Linux - Newbie 3 05-17-2008 05:50 PM
im getting UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1' jabka Linux - Newbie 2 11-24-2006 06:44 AM
Problem with UTF-8 and ISO-8859-1 dasenjo Linux - Software 0 06-22-2003 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration