strange characters in text files

Asked by Bruce M.

I am testing (evaluating) text editors when I ran across this:

Why does SciTE Text Editor show:
        but don’t drop

when Gedit and GVim show:
        but don’t drop

Bacically I'm searching for a text editor that can cut and past BLOCKS of text like this in "monospaced" text:

  Introduction...............................[In0]
    Getting Started.......................[In1]
    More Stuff................................[In2]

 [In0] Introduction...............................
 [In1] Getting Started.......................
 [In2] More Stuff................................

  Then I'll delete the line of dots with search and replace.
  Haven't found one yet :(

  But I ran across the strange characters and I am curious as to why?

Bruce Milmine

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bruce M.
Solved:
Last query:
Last reply:
Revision history for this message
Shriramana Sharma (jamadagni) said :
#1

Please check the encoding being used (look in the tools menu or something -- I am not familiar with the exact editors you are using) -- usually when the same text is displayed in different encodings some funny text like this happens.

Revision history for this message
Bruce M. (canar-ciudad) said :
#2

Can't find the "encodings" :(

And I have noticed that if I want to do a search and replace the same codings show up in almost all text editors.

gedit:

==\r\n\r\n\r\n1 = Peru

vim

==[][][]1 = Peru

the []'s have 4 "dots" that look like this [°°] on the top and [°A] on the bottom.

SciTe has 4 []'s the top of all of them are [°°]
the bottoms are [°D][°A][°D][°A]

and search and replace doesn't find anything ... when the are a LOT of cases it should find.

Bruce Milmine

Revision history for this message
Bruce M. (canar-ciudad) said :
#3

no action ... closing

Revision history for this message
Shriramana Sharma (jamadagni) said :
#4

Hello. Sorry but I simply didn't get notifications of your replies. The problem is still with your text encoding. If SciTe does not support different encodings, which is a must nowadays, then try using a different editor. If you merely want to print out the first x characters of each line from a text document, then you can simply do:

cut -c x filename

on any *nix-type system and you can redirect the output to another file. so:

cut -c 50 filename > newfilename