Results 1 to 4 of 4

Thread: Convert source files to UTF8

  1. #1
    Join Date
    Apr 2007
    Location
    Germany
    Beans
    58
    Distro
    Ubuntu

    Convert source files to UTF8

    Hi everybody!

    I am experiencing some problems with text files, such as LaTeX source files. Since I migrated from Windows to Ubuntu, all the files have an encoding that does not correctly work with Kile. It compiles the source files to PDF nevertheless, but gibes me a lot of errors about different characters and it does not really look good to have question marks all over your document! Plus, in the output file, a lot of characters are missing, for instance in this word: "Mrzrevolution (1848)" which should acutally also contain an "Ä".

    Long story, short question:
    How can I convert files with the Windows encoding to UTF-8?

    Thanks
    Ingo
    Last edited by teHIngo; April 28th, 2008 at 01:27 PM.
    I have learned to use the word "impossible" with the greatest caution

  2. #2
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: Convert source files to UTF8

    have a look at: iconv

    But not sure if that works for the files you want to have.

  3. #3
    Join Date
    Dec 2006
    Beans
    1,482
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Convert source files to UTF8

    Depending on how many files you have (i.e. if you have relatively few) you could probably just open them in kate or gedit and do a "save as"

    If you have a lot though, and want to automate it on the command line, iconv is probably the choice.
    Sharing Wifi Is Caring Wifi {o,o} Ubuntu Community Docs..
    |)__)
    -”-”-
    O RLY?

  4. #4
    Join Date
    Apr 2007
    Location
    Germany
    Beans
    58
    Distro
    Ubuntu

    Re: Convert source files to UTF8

    It worked, thank you
    Last edited by teHIngo; April 28th, 2008 at 03:11 PM.
    I have learned to use the word "impossible" with the greatest caution

Bookmarks

Posting Permissions

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