The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Broken character encoding in .omc files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ipochiwi

Germany
3 Posts

Posted - 10/28/2015 :  06:21:52 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2015 (64-bit) b9.2.214
Operating System: Windows 7 Enterprise 64bit

I've been experiencing a character encoding problem since switching to 2015.

I have a bunch of labtalk scripts in individual .ogs files, which I pack in a .omc once in a while to distribute it to coworkers. Therefore I go to Tools -> Custom Menu Organizer and copy and paste the scripts from the Code Builder.

There are some literal µs in my labtalk scripts:



Which break once I save them in the .omc:



libmagic tells me that the labtalk scripts are encoded in latin1, while my .omc file is encoded in UTF8. So I checked whether previous Origin versions used different encodings, but it seems to have always been latin1 and UTF8. I tried to replace the broken µs manually with UTF8 encoded ones anyways, but they also break:




Best regards
Simon

SeanMao

China
288 Posts

Posted - 10/28/2015 :  10:01:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Can you try to change the line with greek symbol as:


col(2)[U]$=\g(m)A;


Give it a try and see how it goes.

Regards!

Sean

OriginLab Tech. Service

Edited by - SeanMao on 10/28/2015 10:05:47 PM
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 10/30/2015 :  10:58:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have created ORG-13866, so we can investigate.

CP
Go to Top of Page

SeanMao

China
288 Posts

Posted - 11/02/2015 :  02:34:42 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Simon,

The issue you have reported is implemented in our newly released Origin 2016 SR0 and it is a confirmed bug in Origin 2015. It also well functions in Origin 9.1.

You can download an Origin 2016 free trial to see it from link below:
http://originlab.com/demodownload.aspx

Regards!

Sean
Go to Top of Page

ipochiwi

Germany
3 Posts

Posted - 11/04/2015 :  05:22:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your replies.

quote:
Originally posted by SeanMao


Can you try to change the line with greek symbol as:

col(2)[U]$=\g(m)A;




That works for me. I don't understand however, in which contexts this escape sequence is interpreted, as it is not when I enter the following in a command window:

test$=\g(m);
test$=;
> \g(m)

quote:
Originally posted by SeanMao


The issue you have reported is implemented in our newly released Origin 2016 SR0 and it is a confirmed bug in Origin 2015. It also well functions in Origin 9.1.

You can download an Origin 2016 free trial to see it from link below:
http://originlab.com/demodownload.aspx




If this is a regression bug, are you not going to fix it in 2015 too? I am on a students license and I don't think I am eligible to upgrade to 2016 SR0 without buying a new license.

Best regards
Simon
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 11/04/2015 :  4:31:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

That works for me. I don't understand however, in which contexts this escape sequence is interpreted, as it is not when I enter the following in a command window:

test$=\g(m);
test$=;
> \g(m)




Escape notation can be visualized only in places where rich text can be displayed, like as text annotations on a graph, or in worksheet cells where rich text was enabled. By default, Units cell was enabled as Rich Text.


quote:

If this is a regression bug, are you not going to fix it in 2015 too? I am on a students license and I don't think I am eligible to upgrade to 2016 SR0 without buying a new license.

Best regards
Simon



If you have a student version, you are entitled to new version free of charge as long as your student version has not expired. Just download the 2016 demo, install it on the same PC where you had installed 2015, and get license again. As long as same PC, you can have both 2015 and 2016 installed and both will work.

CP
Go to Top of Page

ipochiwi

Germany
3 Posts

Posted - 11/05/2015 :  06:55:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by cpyang
Escape notation can be visualized only in places where rich text can be displayed, like as text annotations on a graph, or in worksheet cells where rich text was enabled. By default, Units cell was enabled as Rich Text.

If you have a student version, you are entitled to new version free of charge as long as your student version has not expired. Just download the 2016 demo, install it on the same PC where you had installed 2015, and get license again. As long as same PC, you can have both 2015 and 2016 installed and both will work.

CP




That solves my issue and answered my questions, thank you both very much for your replies!

Best Regards
Simon
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000