LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2010, 06:45 AM   #1
e3399
Member
 
Registered: Nov 2010
Location: China
Distribution: Fedora12
Posts: 54

Rep: Reputation: 0
iconv: conversion from `ISO-8859' is not support.why this happens.


[test@localhost Friends Season 2 NTSC DD2.0 x264 MMI]$ file 1.srt
1.srt: ISO-8859 English text, with CRLF line terminators
[test@localhost Friends Season 2 NTSC DD2.0 x264 MMI]$ iconv -f ISO-8859 -t UTF8 1.srt
iconv: conversion from `ISO-8859' is not supported

1.srt does not only includes English text but also Chinese.
But when I open it on fedora with gedit,I can only see the English.Chinese text becomes unreadable code.

The command file does show "1.srt" is ISO-8859,why can it be supported by iconv.
 
Old 12-03-2010, 07:07 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi, you should use the whole ISO format, like:
Code:
iconv -f ISO-8859-15 -t UTF8 1.srt
Regards
 
Old 12-04-2010, 11:20 AM   #3
e3399
Member
 
Registered: Nov 2010
Location: China
Distribution: Fedora12
Posts: 54

Original Poster
Rep: Reputation: 0
Thank you,bathory.

iconv -f cp936 -t utf-8
But I solved my problem by this command.
 
  


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
Problems with iconv and ISO-8859-1 mauros Linux - Software 3 11-22-2011 01:31 PM
iconv us-ascii to UTF-8 or ISO-8859-15 m4rtin Linux - Software 2 02-18-2009 08:34 PM
Convert file from ISO-8859-1 to some Japanese encoding? (iconv errors) violagirl23 Linux - Software 5 03-26-2008 01:13 AM
Lacking support for ISO-8859-1 NNP Linux - Software 2 02-07-2007 09:01 AM
iso 8859 or iso 9960 tsundram Linux - Newbie 16 02-22-2002 11:32 PM


All times are GMT -5. The time now is 01:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration