<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Import character value issue in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389140#M63923</link>
    <description>&lt;P&gt;Thanks Craige,&lt;/P&gt;&lt;P&gt;Per the cvs value "&lt;STRONG&gt;FlexSEM1000",&lt;/STRONG&gt;&amp;nbsp;when I change this to "&lt;STRONG&gt;FlexSEM&lt;/STRONG&gt;", JMP is able to read &lt;EM&gt;without issues&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll poke around using your suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 15:43:44 GMT</pubDate>
    <dc:creator>NRW</dc:creator>
    <dc:date>2021-05-28T15:43:44Z</dc:date>
    <item>
      <title>Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389098#M63919</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm importing values from cvs files. One of them is a string. However, JMP is unable to read the value. The first image is the cvs file where all values are imported except "FlexSEM1000." So no issues there. However, second image shows the JMP table with the F????? value. How do I tackle this issue? Relevant code attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Join_files = Expr(
		
	For( i = 1, i &amp;lt;= N Items( path ), i+=2, 
			/*area, %area, and pore pixel count*/
			jointable1 = Open( path[i] );
			//jointable1 &amp;lt;&amp;lt; Get Name;
			samplename = Substr( jointable1 &amp;lt;&amp;lt; Get Name, 1, 18 );			//sample replicate name //
			samplename2 = Word(1,samplename, "_");							// Only sample name, no replicate suffix (i.e. a1, a2...)			
			
			
			
			jointable1 &amp;lt;&amp;lt; New Column( "Sample",
				Character,
				Nominal,	
				Set Each Value( samplename )								// setting each row in column 1 to samp rep name //
				);
			
			/*diameter and pore pixel count*/
			jointable2 = Open( path[i + 1] );

			dt = Data Table( jointable1 ) &amp;lt;&amp;lt; Join(
				With( Data Table( jointable2 ) ),
				Select( :Sample, :Area, :Name( "%Area" ),:scale, :thick, :pixelrad, :mag, :system),
				SelectWith( :pixD1, :count1), 
				Cartesian Join	
				);
			
			Close( jointable1, no save );
			Close( jointable2, no save );
			
			Columns();
			Graphs();
			Graphs2();
			Graphs3();
			dt &amp;lt;&amp;lt; Set Name(samplename);
			po = dt &amp;lt;&amp;lt; get name;
			dt &amp;lt;&amp;lt; Save(SD1 || po);
			
		);
	
	
);


Columns = Eval Expr(
	//dt &amp;lt;&amp;lt; New Column( "Condition", Character, Nominal, Set Each Value( "1:1" ) );
	dt:Name( "%Area" ) &amp;lt;&amp;lt; Set Name( "Image A pore area (%)", Numeric, Continuous );
	dt:Area &amp;lt;&amp;lt; Set Name( "Total Image pixel count (pore_part)", Numeric, Continuous );
	dt:scale &amp;lt;&amp;lt; Set Name("pix/mm scale", Numeric, Continuous);
	dt:pixD1 &amp;lt;&amp;lt; Set Name( "Pore Diameter (pixel)", Numeric, Continuous );
	dt:count1 &amp;lt;&amp;lt; Set Name( "Pore Pixel Count", Numeric, Continuous );
	dt:thick &amp;lt;&amp;lt; Set Name("d - thickness (m)", Numeric, Continuous);
	dt:pixelrad &amp;lt;&amp;lt; Set Name("LT Radius", Numeric, Continuous);
	dt:mag &amp;lt;&amp;lt; Set Name("Mag", Numeric, Continuous);
	dt:system &amp;lt;&amp;lt; Set Name("Image Mode", Character, Nominal);
	dt:Sample &amp;lt;&amp;lt; Set Display Width( 150 );
	
	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="charac import_a.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33114i9704CC4D384FDFFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="charac import_a.JPG" alt="charac import_a.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="charac import_b.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33115i5E6FE5EA64E69F8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="charac import_b.JPG" alt="charac import_b.JPG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:30:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389098#M63919</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2023-06-10T23:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389136#M63922</link>
      <description>Away from computer, can't give exact words...&lt;BR /&gt;Try using an alternate charset, either through preferences.. text import, or through the text import wizard. The diamond question mark means the character set jmp guessed is not correct.</description>
      <pubDate>Fri, 28 May 2021 15:33:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389136#M63922</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-05-28T15:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389140#M63923</link>
      <description>&lt;P&gt;Thanks Craige,&lt;/P&gt;&lt;P&gt;Per the cvs value "&lt;STRONG&gt;FlexSEM1000",&lt;/STRONG&gt;&amp;nbsp;when I change this to "&lt;STRONG&gt;FlexSEM&lt;/STRONG&gt;", JMP is able to read &lt;EM&gt;without issues&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll poke around using your suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 15:43:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389140#M63923</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-05-28T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389155#M63927</link>
      <description>Depending on the editor, retyping it might change it back to the preferred unicode charset. Ideally the program that produces the data would use ascii or unicode. Or, if that can't work, tell jmp which charset to use via the charset option.</description>
      <pubDate>Fri, 28 May 2021 16:02:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389155#M63927</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-05-28T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389182#M63929</link>
      <description>&lt;P&gt;Craige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep plugging away. I tried attaching the csv doc in the case someone could get it to work, but the site was not allowing the upload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime I'll go to program that generated the file to see how it is formatting. Originally the system ID data was being read from a system text file (accompanied with images from a SEM) which was UTF16. However a script was written to change to UTF8 and save to csv file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had JMP look at both types, but no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 16:26:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389182#M63929</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-05-28T16:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389189#M63930</link>
      <description>You can see the hex representation of the file using jmp. Approximately like this...&lt;BR /&gt;Write(hex(loadtextfile(filename,blob)))&lt;BR /&gt;</description>
      <pubDate>Fri, 28 May 2021 16:39:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389189#M63930</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-05-28T16:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389283#M63938</link>
      <description>&lt;P&gt;Craige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found out if I manually open the csv file and save as a "csv UTF-8", JMP will recognize&amp;nbsp; "FlexSEM1000". However that's a manual step I would like to eliminate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 18:26:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389283#M63938</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-05-28T18:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389640#M63979</link>
      <description>&lt;P&gt;Craige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to go back to the source code that generated the csv, and found the issue. All the items in the the table were UTF-8, EXCEPT the last column item of interest. I fixed the code and now everything works. I guess JMP was seeing both UTF-8 and UTF-16 and and since it was already seeing UTF-8, didn't recognize the last column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for all your valuable time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:44:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389640#M63979</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-06-01T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Import character value issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389652#M63982</link>
      <description>Yes, if there is a unicode Byte Order Mark at the beginning, Jmp believes it. Without a BOM, I'm not sure exactly how the guess proceeds. Glad you found it!</description>
      <pubDate>Tue, 01 Jun 2021 14:57:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-character-value-issue/m-p/389652#M63982</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-06-01T14:57:24Z</dc:date>
    </item>
  </channel>
</rss>

