Re: transposing comma problem

John Frain <[email protected]> Sun, 2 May 2021 17:32:02 +0100
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <CAJWf-12TiuoduY_qtTwbYx3psdd7_0JDWe-=Cnp33chZm9VEww@mail.gmail.com>
Many years ago I had the same problem with scripts copied from pdf files
for use in various programs.  The problem was that the encoding used for ',
^, and several other symbols was different to those used on my PC. To
correct I just used cut and paste.  I did something in my Latex files to
minimise the problem in my lecture notes but can not recall exactly what I
did

On Sun, 2 May 2021, 17:24 John Frain, <[email protected]> wrote:

> Many years ago I encountered this problem with scripts copied from pdf
> files
>
> On Sun, 2 May 2021, 00:48 Andrew Janke, <[email protected]> wrote:
>
>>
>>
>> On 5/1/21 5:59 AM, Hamed Shakouri wrote:
>>
>> Moreover, when I opened the file saved by ver. 6.2 in ver. 5.2, the
>> character is replaced with (c) character:
>> [image: image.png]
>>
>> On Sat, May 1, 2021 at 2:56 AM Hamed Shakouri <[email protected]>
>> wrote:
>>
>>> [image: image.png]
>>> [image: image.png]
>>>
>>>
>>>
>> Looks like you've got an encoding/locale problem all right.
>>
>> Where exactly are you copying this text in to the Octave 6.2 Editor from?
>> Is it a text file open in a text editor? If so, what text editor is it
>> using? Or a web page somewhere? Or are you typing it in directly?
>>
>> Can you copy and paste (not screenshot) the output of the commands "chcp"
>> and "systeminfo" from the Windows Command Prompt or a PowerShell Prompt?
>>
>> And then open a PowerShell prompt and run this:
>>
>> Get-WinSystemLocale | Select-Object LCID, Name, DisplayName, @{
>> n='OEMCP'; e={ $_.TextInfo.OemCodePage } }, @{ n='ACP';   e={
>> $_.TextInfo.AnsiCodePage } }
>>
>> and paste the output here.
>>
>> (See this ServerFault answer for context:
>> https://serverfault.com/a/836221)
>>
>> By the way, that hang on "abs('character')" is really weird.
>>
>> Cheers,
>> Andrew
>>
>