Re: transposing comma problem
Hamed Shakouri <[email protected]> Sun, 2 May 2021 23:07:01 -0700
| Newsgroups | gmane.comp.gnu.octave.maintainers |
|---|---|
| Message-ID | <CAOBG-TjbC03-idxdRz23fiJXvKtJsb0o6c2v6eyvk1oJWvQxgA@mail.gmail.com> |
Answers to all questions: * As it is shown by screenshots, is clear that I am using 6.2 (and 5.2) Editors to implement codes. * Certainly, I do not copy from a pdf. I am writing (typing) inside the Editor directly. * error: 'chcp' undefined near line 1, column 1 * PowerShell Output: [image: image.png] No error. * Hanging when trying to recognize the character code occurs every time (several times). Thanks, Hamed. On Sun, May 2, 2021 at 9:32 AM John Frain <[email protected]> wrote: > 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 >>> >> -- With Regards, Hamed Shakouri G.
image.png
(image/png, 32.3 KB) - not displayed