* Probelm with paste text from web pages
@ 2012-09-14 8:05 twiki
2012-09-14 9:04 ` Eli Zaretskii
[not found] ` <mailman.8823.1347613482.855.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: twiki @ 2012-09-14 8:05 UTC (permalink / raw)
To: help-gnu-emacs
When i paste text from Opera/Firefox in a buffer
and i want to save this buffer...
i have always to solve this question:
[...]
These default coding systems were tried to encode text
in the buffer `test.txt':
(iso-latin-1-dos (72 . 8592) (143 . 8217) (222 . 8217) (251 . 8217)
(318 . 8217) (355 . 8217) (458 . 8217) (685 . 8217) (755 . 8217)
(960 . 8217) (1021 . 8230))
However, each of them encountered characters it couldn't encode:
iso-latin-1-dos cannot encode these: ...
[...]
How to paste text with apostrophes, accents, etc. for
to save in iso-latin1-dos?
THANX in ADVANCE!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Probelm with paste text from web pages
2012-09-14 8:05 Probelm with paste text from web pages twiki
@ 2012-09-14 9:04 ` Eli Zaretskii
[not found] ` <mailman.8823.1347613482.855.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2012-09-14 9:04 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Fri, 14 Sep 2012 01:05:41 -0700 (PDT)
> From: twiki <lap7619@yahoo.it>
> Injection-Date: Fri, 14 Sep 2012 08:05:41 +0000
>
> When i paste text from Opera/Firefox in a buffer
> and i want to save this buffer...
> i have always to solve this question:
>
> [...]
> These default coding systems were tried to encode text
> in the buffer `test.txt':
> (iso-latin-1-dos (72 . 8592) (143 . 8217) (222 . 8217) (251 . 8217)
> (318 . 8217) (355 . 8217) (458 . 8217) (685 . 8217) (755 . 8217)
> (960 . 8217) (1021 . 8230))
> However, each of them encountered characters it couldn't encode:
> iso-latin-1-dos cannot encode these: ...
> [...]
>
> How to paste text with apostrophes, accents, etc. for
> to save in iso-latin1-dos?
You can't, not without changing those characters to their equivalents,
and deleting those that don't have equivalents. These characters
simply don't exist in the Latin-1 character set.
Why do you want to save them in iso-latin1-dos? What's wrong with
utf-8-dos?
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.8823.1347613482.855.help-gnu-emacs@gnu.org>]
* Re: Probelm with paste text from web pages
[not found] ` <mailman.8823.1347613482.855.help-gnu-emacs@gnu.org>
@ 2012-09-14 10:31 ` twiki
2012-09-14 19:49 ` Peter Dyballa
0 siblings, 1 reply; 4+ messages in thread
From: twiki @ 2012-09-14 10:31 UTC (permalink / raw)
To: gnu.emacs.help; +Cc: help-gnu-emacs
>
> Why do you want to save them in iso-latin1-dos? What's wrong with
>
> utf-8-dos?
Default coding system (for new files) in my Emacs installation is:
iso-latin-1-dos
maybe for my local-setup... moreover i've most files in iso-latin-1-dos!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Probelm with paste text from web pages
2012-09-14 10:31 ` twiki
@ 2012-09-14 19:49 ` Peter Dyballa
0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2012-09-14 19:49 UTC (permalink / raw)
To: twiki; +Cc: help-gnu-emacs@gnu.org List
Am 14.09.2012 um 12:31 schrieb twiki:
> maybe for my local-setup... moreover i've most files in iso-latin-1-dos!
Then try to tell your browser to display the pages in ISO Latin-1! It might also be possible to tell your windowing system to convert everything copied to ISO Latin-1. I've heard (or rather read) of a so-called registry…
In using UTF-8 instead of ISO Latin-1 your saved files on disk will contain the same bytes for the characters in the US-ASCII range and two bytes for the 8-bit characters, for example accented characters. The typographical quotes you copy will be encoded by three bytes each.
It's worth to upgrade to UTF-8. We're not living in some limited country but in a global village.
--
Greetings
Pete
To most people solutions mean finding the answers. But to chemists solutions
are things that are still all mixed up.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-09-14 19:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-14 8:05 Probelm with paste text from web pages twiki
2012-09-14 9:04 ` Eli Zaretskii
[not found] ` <mailman.8823.1347613482.855.help-gnu-emacs@gnu.org>
2012-09-14 10:31 ` twiki
2012-09-14 19:49 ` Peter Dyballa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).