On Fri, 22 Jan 2010 12:50:52 -0600
"Edward K. Ream" <[email protected]> wrote:

> On Fri, Jan 22, 2010 at 11:40 AM, Terry Brown <[email protected]> wrote:
> > In the (hopefully) attached testu.zip is a file called rhythmbox.desktop.  
> > I open it in Leo, it comes in as an @edit node with @killcolor and seems ok.
> >
> > I select (any method, let's say cursor keys and shift), all the lines 
> > starting with X-GNOME-FullName, then press Delete.
> >
> > The result is not the expected, i.e. the text before the selection, 
> > followed by the text after the selection.
> 
> It works for me

You mean you can delete all the X-GNOME-FullName lines and the text before and 
after meet up as they should?

> but the @edit node is filled with byte hash for the
> unicode characters.

What do you mean by "byte hash", \u043d or བོཀསི་སྙན?  (assuming your email 
reader's font doesn't have characters for that second option either :-)  I see 
mostly correct characters, and some of the "བོཀསི་སྙན" stuff.

'\u043d' in the body would suggest repr() has been involved somewhere, I think.

> What is the encoding for the file?

I would imagine it's supposed to be UTF-8, and

u = unicode(file("rhythmbox.desktop").read(), 'utf-8')

works, whereas 'utf-16' or 'ascii' fails.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to