unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pieter van Oostrum <pieter-l@vanoostrum.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to save a file with embedded unicode maths symbols
Date: Mon, 09 Mar 2020 17:27:21 +0100	[thread overview]
Message-ID: <lxmu8p4hp2.fsf@cochabamba.vanoostrum.org> (raw)
In-Reply-To: <dfb30828-24b0-47d0-bcbb-7e732b29e22e@googlegroups.com> (Angus Comber's message of "Mon, 9 Mar 2020 08:16:56 -0700 (PDT)")

Angus Comber <anguscomber@gmail.com> writes:

> On Monday, March 9, 2020 at 1:19:16 PM UTC, Pieter van Oostrum wrote:
>> Angus Comber <***@**.c*> writes:
>> 
>> > If I go to this page: https://stackify.com/solid-design-liskov-substitution-principle/
>> >
>> > There is a definition of the principle Let Φ(x) ... and I can paste that
>> > into emacs on Windows and I see the greek symbol displayed just fine.
>> >
>> > But When I go to save the file it prompts for a coding system (1st entry
>> > in list being chinese-iso-8bit). What coding system would I choose to be
>> > able to save the symbol to disk. My operating system is 64 bit Windows
>> > 7.
>> 
>> You can save in any encoding that is able to encode all the characters
>> in the file. But generally the best (most useful, universal) encoding
>> is utf-8.
>> 
>> However it depends on what you want to do afterwards with the file.
>> The programs that you use to process the file must be able to
>> understand that encoding. Nowadays most software understands utf-8.
>> -- 
>> Pieter van Oostrum
>> www: http://pieter.
>> PGP key: [8DAE142BE17999C4]
>
> If I save as filename LSP.txt and select utf-8 it saves without
> complaining but when I open the file again I see:
>
> Let Φ(x) be a property provable about objects x of type T. Then Φ(y)
> should be true for objects y of type S where S is a subtype of T.
>
> ie the phi has transformed to Φ.
>
Did you open it in Emacs?
What you see is the utf-8 encoding of Φ interpreted on reading as latin-1 (iso-8859-1) or a similar encoding, like Windows-1252. Is your Emacs configured to prefer one of these encodings?

-- 
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]



  parent reply	other threads:[~2020-03-09 16:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e68aa1ba-3e40-4d3d-b037-9c9560a257b5@googlegroups.com>
2020-03-09 13:14 ` How to save a file with embedded unicode maths symbols Pieter van Oostrum
     [not found]   ` <mailman.2329.1583759953.2412.help-gnu-emacs@gnu.org>
     [not found]     ` <dfb30828-24b0-47d0-bcbb-7e732b29e22e@googlegroups.com>
2020-03-09 16:27       ` Pieter van Oostrum [this message]
     [not found]         ` <mailman.2341.1583771249.2412.help-gnu-emacs@gnu.org>
     [not found]           ` <5e13d072-68da-4d3b-a62f-e48c0543b0f9@googlegroups.com>
2020-03-10 10:43             ` Pieter van Oostrum
2020-03-10 13:03               ` Stefan Monnier
2020-03-10 14:45                 ` Eli Zaretskii
2020-03-10 14:54                   ` Stefan Monnier
2020-03-10 15:14                     ` Eli Zaretskii
2020-03-10 14:43               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lxmu8p4hp2.fsf@cochabamba.vanoostrum.org \
    --to=pieter-l@vanoostrum.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).