Results 1 to 3 of 3

Thread: text files show spaces

  1. #1
    Join Date
    Oct 2005
    Beans
    194

    text files show spaces

    Kubuntu 9.04. using ISPConfig3

    I had HTML files created in windows in one of the sites that I took from back up when I upgraded. they worked fine on 8.10, but now they seem to have spaces between each letter. In windows they look fine, in Kate I see the spaces.
    How can did be?? what changed between versions?
    DO I have to go now and fix all files one by one?

    BTW it happens only with files from windows, other backed up sites I have work fine.

  2. #2
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: text files show spaces

    It sounds like the file is saved in a 16-bit format, but kate is expecting it to be 8-bit. Try this command:
    Code:
    strings -e l broken.txt>fixed.txt
    By the way, gedit works correctly with unicode text documents created with wordpad in windows.
    Last edited by cdenley; August 7th, 2009 at 06:01 PM.

  3. #3
    Join Date
    Oct 2005
    Beans
    194

    Re: text files show spaces

    thanks!

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
  •