<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — unicode special characters replacements]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8421&amp;type=atom" />
	<updated>2019-09-24T21:20:07Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8421</id>
		<entry>
			<title type="html"><![CDATA[Re: unicode special characters replacements]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36116#p36116" />
			<content type="html"><![CDATA[<p>FrontAccounting escapes all values before storing them. If you are storing values directly, you should use the same escaping mechanism. It can create some serious problems if you have a limited char() or varchar() field and suddenly you can&#039;t fit a 10 character string in a 15 character field because the escaping expands some characters into 4.</p><p>Having said that, it&#039;s not going to change anytime soon, so you may have to adapt your code accordingly.</p>]]></content>
			<author>
				<name><![CDATA[oakstreet1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42263</uri>
			</author>
			<updated>2019-09-24T21:20:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36116#p36116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[unicode special characters replacements]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36114#p36114" />
			<content type="html"><![CDATA[<p>The way fa insets/updates data in the database is by replacing certain special characters with their HTML entities equivalents.&nbsp; If I enter subscript 0,1,2, and 3, U+2080, U+2081, U+2082, U+2083, they are recorded as &amp; 8320;, &amp; 8321;, &amp; 8322;, and &amp; 8323;. If enter directly in the database they show as ? on both the screen and in the reports.&nbsp; superscript 0,1,2, and 3, U+00B0, U+00B1, U+00B2, and U+00B3, are recorded as unicode in the database; ³ is recorded as ³, and show correctly on the screen and the reports.&nbsp; </p><p>Is there an easy way to add the remaining 4-9 superscripts and 0-9 subscripts to the list so they show properly?&nbsp; Can you explain why the U+00B0, U+00B1, U+00B2, and U+00B3 values are recorded as unicode?&nbsp; I tried !@#$%^&amp;*() with the result of !@#$%^&amp; amp;*() so it appears that &amp; is the only one being replaced by the html equivalent for the more common characters.&nbsp; The database is utf8mb4.</p>]]></content>
			<author>
				<name><![CDATA[chem75]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20727</uri>
			</author>
			<updated>2019-09-24T19:00:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36114#p36114</id>
		</entry>
</feed>
