emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eww doesn't decode %AA%BB%CC URL names


From: Eli Zaretskii
Subject: Re: eww doesn't decode %AA%BB%CC URL names
Date: Thu, 24 Dec 2015 23:00:04 +0200

> From: Lars Ingebrigtsen <address@hidden>
> Date: Thu, 24 Dec 2015 21:43:17 +0100
> 
> If I eval the following:
> 
> (write-region (point) (point-max) "/home/larsi/Downloads/Сердце")
> 
> Then I get a file name that consists of five spaces.  That seems awfully
> weird.  I may have configured something somewhere that says that Emacs
> should create file names in latin-1...  Hm...
> 
> (set-language-environment "Latin-1")
> 
> Which I would guess isn't uncommon.

I hope not.  Those who do that completely screw up their file-name
encoding stuff.

> Making an all-blank file name here is somewhat unacceptable, I
> think.  So how should this be handled?

Not sure which problem are you trying to solve.  But my crystal ball
says you need to

  (let ((file-name-coding-system default-file))
    (write-region (point) (point-max) "/home/larsi/Downloads/Сердце"))

because most GNU/Linux systems use UTF-8 codeset by default.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]