<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — SyntaxError: Unexpected token � in JSON at position 0]]></title>
		<link>https://forexsb.com/forum/topic/9351/syntaxerror-unexpected-token-in-json-at-position-0/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/9351/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in SyntaxError: Unexpected token � in JSON at position 0.]]></description>
		<lastBuildDate>Fri, 10 Mar 2023 17:26:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: SyntaxError: Unexpected token � in JSON at position 0]]></title>
			<link>https://forexsb.com/forum/post/73928/#p73928</link>
			<description><![CDATA[<p>This issue is fixed in <strong>Express Generator v2.22</strong></p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Fri, 10 Mar 2023 17:26:22 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/73928/#p73928</guid>
		</item>
		<item>
			<title><![CDATA[Re: SyntaxError: Unexpected token � in JSON at position 0]]></title>
			<link>https://forexsb.com/forum/post/73366/#p73366</link>
			<description><![CDATA[<p>Thank you very much. This solved the problem</p>]]></description>
			<author><![CDATA[null@example.com (amacaulay)]]></author>
			<pubDate>Tue, 31 Jan 2023 16:06:57 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/73366/#p73366</guid>
		</item>
		<item>
			<title><![CDATA[Re: SyntaxError: Unexpected token � in JSON at position 0]]></title>
			<link>https://forexsb.com/forum/post/73333/#p73333</link>
			<description><![CDATA[<p>The problem is that NodeJS doesn&#039;t read UTF-8 files properly as exported from MT.</p><p>I tried many tricks to overcome that, but still, I had no success.</p><p>The current solution is to edit your Data Export scripts to export ASCII files instead of UTF8.</p><p>Open your Data export script and find the <strong>SaveFile</strong> function around line 131.</p><p>Replace:<br /></p><div class="codebox"><pre><code>int file_handle = FileOpen(fileName, FILE_WRITE|FILE_TXT);</code></pre></div><p>With:<br /></p><div class="codebox"><pre><code>int file_handle = FileOpen(fileName, FILE_WRITE|FILE_ANSI);</code></pre></div><p>This will force MT to export ASCII files, and Express Generator will be able to read them properly.</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Mon, 30 Jan 2023 11:18:56 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/73333/#p73333</guid>
		</item>
		<item>
			<title><![CDATA[SyntaxError: Unexpected token � in JSON at position 0]]></title>
			<link>https://forexsb.com/forum/post/73246/#p73246</link>
			<description><![CDATA[<p>I used the download script to download data from MT5. However, the data I got gives the following error when I used EG to generate strategies from the data. I have attached the data for your review. What could I be doing wrong?</p><p>C:\express-generator&gt;node bin/gen --server fxtm --symbol EURUSD --period D1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ..:: Express Generator v2.11 ::..<br />undefined:1<br />��{<br />^</p><p>SyntaxError: Unexpected token � in JSON at position 0<br />&nbsp; &nbsp; at JSON.parse (&lt;anonymous&gt;)<br />&nbsp; &nbsp; at Object.&lt;anonymous&gt; (C:\express-generator\bin\gen.js:52:25)<br />&nbsp; &nbsp; at Module._compile (node:internal/modules/cjs/loader:1159:14)<br />&nbsp; &nbsp; at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)<br />&nbsp; &nbsp; at Module.load (node:internal/modules/cjs/loader:1037:32)<br />&nbsp; &nbsp; at Module._load (node:internal/modules/cjs/loader:878:12)<br />&nbsp; &nbsp; at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)<br />&nbsp; &nbsp; at node:internal/main/run_main_module:23:47</p><p>Node.js v18.12.1</p>]]></description>
			<author><![CDATA[null@example.com (amacaulay)]]></author>
			<pubDate>Sat, 21 Jan 2023 18:48:32 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/73246/#p73246</guid>
		</item>
	</channel>
</rss>
