Find the answer to your Linux question:
Results 1 to 4 of 4
So I like to backup (encode) my movies and convert them to mkv so I can play them on my media center. I will rip the subs and it convets ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie mactruck's Avatar
    Join Date
    Apr 2012
    Location
    City of Salt
    Posts
    187

    more wont show text.


    So I like to backup (encode) my movies and convert them to mkv so I can play them on my media center. I will rip the subs and it convets it to a .srt file. When I look at the file with "more" in terminal everything shows up blank. When I open the file in emacs it looks fine. Is there some setting that I can change to make this viewable in terminal? maybe its the character format. Im lost here and any help would be awesome.

    EDIT: I found out why more would not work. The file was savedd in unicode instead of ascii. Is there a command to convert unicode to ascii?
    Last edited by mactruck; 12-14-2012 at 05:01 PM.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    well, you could try iconv for that, but by convert, you'll mostly be just deleting...but try away:

    Code:
    iconv -f utf-8 -t ascii -c input.txt > ascii.txt
    Last edited by atreyu; 12-17-2012 at 03:17 AM. Reason: fixed code tags

  3. #3
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris
    Posts
    1,294
    Hi.

    I use something similar:
    Code:
    iconv -c -f utf8 -t//TRANSLIT
    in order to get an approximation of what was there.

    See man iconv for details.

    Best wishes ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie mactruck's Avatar
    Join Date
    Apr 2012
    Location
    City of Salt
    Posts
    187
    Excellent, Thanks I will try this when I get home today.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •