Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, i have file which should be in UTF-8 and has bad characters like: ĹŻĹľete vyĹ.adit pĹ.Ă*sp Its from Latin - Central European charset (ěščřž) I did not found any ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    311

    iconv - converting file


    Hello,

    i have file which should be in UTF-8 and has bad characters like:

    ĹŻĹľete vyĹ.adit pĹ.Ă*sp

    Its from Latin - Central European charset (ěščřž)

    I did not found any online converter / free software, but i found iconv in linux command line.

    tried:

    Code:
    iconv -f UTF-8 -t ISO-8859-1 < infile > outfile
    iconv: illegal input sequence at position 0
    infile contains only this:

    ĹŻĹľete vyĹ.adit pĹ.Ă*sp
    any idea how to convert it pls?

  2. #2
    Just Joined!
    Join Date
    Jun 2013
    Posts
    25
    if you want utf-8 shouldnt you type:

    iconv -f ISO-8859-1 -t UTF-8 <input file> output file

  3. #3
    Linux User postcd's Avatar
    Join Date
    Apr 2011
    Posts
    311
    Quote Originally Posted by droidlizard View Post
    if you want utf-8 shouldnt you type:

    iconv -f ISO-8859-1 -t UTF-8 <input file> output file
    thx, i want ISO-8859-1, i tried your command and characters in output file was not fixed, are bad.

    then i switched -f and -t like:

    iconv -t ISO-8859-1 -f UTF-8 <input file> output file

    and it returned:
    iconv: illegal input sequence at position 2236

Posting Permissions

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