<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — unicode special characters replacements]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8421</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8421&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in unicode special characters replacements.]]></description>
		<lastBuildDate>Tue, 24 Sep 2019 21:20:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: unicode special characters replacements]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36116#p36116</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (oakstreet1)]]></author>
			<pubDate>Tue, 24 Sep 2019 21:20:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36116#p36116</guid>
		</item>
		<item>
			<title><![CDATA[unicode special characters replacements]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36114#p36114</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (chem75)]]></author>
			<pubDate>Tue, 24 Sep 2019 19:00:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36114#p36114</guid>
		</item>
	</channel>
</rss>
