Difference between revisions of "Statistical Algorithms Importer: Pre-Installed Project FAQ"

From Gcube Wiki
Jump to: navigation, search
(Created page with "{| align="right" ||__TOC__ |} F.A.Q. of Statistical Algorithms Importer (SAI), here are common mistakes we have found in Pre-Installed Project. == Windows User == Warning,...")
 
(Windows User)
Line 7: Line 7:
  
 
== Windows User ==
 
== Windows User ==
Warning, this type of project will be launched in Linux environment. So be careful that all script files take a compatible Linux encoding. For example one difference is that Windows uses \r\n, whereas Linux uses  \n for line termination.  
+
Warning, this type of project will be launched in Linux environment. So be careful, all script files need to have a compatible Linux encoding. For example one difference is that Windows uses \r\n, whereas Linux uses  \n for line termination.  
Another example is that Windows support "Unicode" UTF-16LE, and each character is 2 or 4 bytes,whereas Linux uses UTF-8, and each character is between 1 and 4 bytes.
+
Another example is that Windows support "Unicode" UTF-16LE, and each character is 2 or 4 bytes, whereas Linux uses UTF-8, and each character is between 1 and 4 bytes.
Also be aware of the Cut and Paste operation that can enter \r\n characters.
+
Also be aware of the Cut and Paste operation done from Windows machines that can enter unwanted \r\n characters.
To resolve this problem if necessary you can use the "convert to unix" functionality provided by notepad++ for example, or look for this feature in your editor.
+
To solve this problem you can use the "convert to unix" functionality provided by notepad++ for example, or look for this feature in your editor.
  
  
 
[[Category:Statistical Algorithms Importer]]
 
[[Category:Statistical Algorithms Importer]]

Revision as of 12:06, 12 October 2017

Contents

F.A.Q. of Statistical Algorithms Importer (SAI), here are common mistakes we have found in Pre-Installed Project.


Windows User

Warning, this type of project will be launched in Linux environment. So be careful, all script files need to have a compatible Linux encoding. For example one difference is that Windows uses \r\n, whereas Linux uses \n for line termination. Another example is that Windows support "Unicode" UTF-16LE, and each character is 2 or 4 bytes, whereas Linux uses UTF-8, and each character is between 1 and 4 bytes. Also be aware of the Cut and Paste operation done from Windows machines that can enter unwanted \r\n characters. To solve this problem you can use the "convert to unix" functionality provided by notepad++ for example, or look for this feature in your editor.