[MPlayer-DOCS] [homepage]: r2879 - trunk/src/donations.src.en

Diego Biurrun diego at biurrun.de
Sat Apr 28 15:43:58 CEST 2007


On Sat, Apr 28, 2007 at 09:13:02AM -0400, Rich Felker wrote:
> On Fri, Apr 20, 2007 at 12:58:47PM +0200, Diego Biurrun wrote:
> > > Mmmm.... I was using Xemacs on a full-UTF-8 distro (to the best of my
> > > knowledge, at least), and copy/pasted the names from paypal pages on
> > > firefox.
> > > I thought XEmacs supported UTF-8 and auto-detected the charset
> > > automatically. I looks like it doesn't do the auto-detection. I wonder
> > > how I can force it to open the file as an UTF-8 file..... I also
> > > wonder what happens when I copy/paste between applications that may or
> > > may not support UTF-8....
> > 
> > GNU Emacs has proper UTF-8 support starting from version 22 (and
> > prereleases).  I'm thinking that XEmacs is behind, is it maintained at
> > all these days?
> 
> Both support UTF-8 to varying degrees (GNU basically totally; X very
> poorly to the degree that it corrupts files upon load-save cycle even
> with no editing between if they contain characters not present in the
> nasty internal "MULE" charset). However, neither correctly chooses the
> default encoding based on your locale. I have the following lines in
> my .emacs:
> 
> (prefer-coding-system 'utf-8)
> (setq locale-coding-system 'utf-8)
> (set-terminal-coding-system 'utf-8)
> (set-keyboard-coding-system 'utf-8)
> (set-selection-coding-system 'utf-8)
> (setq file-name-coding-system 'utf-8)
> 
> You can also use these if you want to override all automatic detection
> of encoding and treat all files as UTF-8:
> 
> (setq coding-system-for-read 'utf-8)
> (setq coding-system-for-write 'utf-8)

Have you tried GNU emacs 22?  UTF-8 support was overhauled quite a bit.

Diego



More information about the MPlayer-DOCS mailing list