octave-maintainers
[Top][All Lists]
Advanced

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

Re: Encoding in Octave 5.0


From: Andrew Janke
Subject: Re: Encoding in Octave 5.0
Date: Tue, 29 Jan 2019 22:06:58 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.4.0



On 1/29/19 12:02 PM, Chris Zheng wrote:
Dear maintainers,

I use Octave within Emacs under Windows 8.1 using Inferior Octave
mode. With version 4.4.1, the following code

title('é');
print n.svg

results in garbage content in the Figure window, but the right content
in the SVG file. However with version 5.0.90 downloaded from
ftp://alpha.gnu.org/gnu/octave/, the above code results in right
content on the screen but wrong content in the SVG file (the wrong
content is encoded in GBK which is my locale encoding). The code sends
to the Octave process is indeed encoded in UTF-8. I wonder what is
changed between 4.4.1 and 5.0, and what can I do to fix the problem.

Thank you for your work,

Chris

Can you tell us exactly how you got this code into Octave?

title('é');
print n.svg

Is this in a *.m file you are editing in Emacs? Or is it something you pasted into the inferior Octave buffer? If it's a *.m file, did you copy-paste that é in, or use a Unicode-entry keyboard sequence? The input mechanics might matter here.

If it's in a *.m file, could you attach a copy of that .m file for us to examine?

And how did you install your Emacs? I'll try to reproduce if you can tell me what setup you have.

Cheers,
Andrew



reply via email to

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