1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Closes #4600, Fixes #4597 - Encoding of 'national characters' in TinyMce.

This commit is contained in:
Cameron
2021-10-19 09:10:32 -07:00
parent fe7e99f136
commit b91b1c36b0
5 changed files with 51 additions and 12 deletions

View File

@@ -120,8 +120,15 @@ Plain text paragraph 3<br />';
$this->assertEquals($expected_2, $actual_2);
$test_3 = "<p>Nikdy nehovor, že niečo nejde, pretože sa vždy nájde blbec, čo to urobí.</p>";
$actual_3 = $this->tm->toDB($test_3);
$expected_3 = "[html]<p>Nikdy nehovor, že niečo nejde, pretože sa vždy nájde blbec, čo to urobí.</p>[/html]";
$this->assertEquals($expected_3, $actual_3);
$result3 = $this->tm->toHTML($actual_3);
$this->assertEquals($test_3, $result3);
}
/**
@@ -213,14 +220,14 @@ Plain text paragraph 3<br />';
{ORDER_DATA: cust_firstname} {ORDER_DATA: cust_lastname}<br />
{ORDER_DATA: cust_company}<br />
{ORDER_DATA: cust_address}<br />
{ORDER_DATA: cust_city} &nbsp;{ORDER_DATA: cust_state} &nbsp;{ORDER_DATA: cust_zip}<br />
{ORDER_DATA: cust_city} {ORDER_DATA: cust_state} {ORDER_DATA: cust_zip}<br />
{ORDER_DATA: cust_country}
<br />
<h4>Shipping address</h4>
{ORDER_DATA: ship_firstname} {ORDER_DATA: ship_lastname}<br />
{ORDER_DATA: ship_company}<br />
{ORDER_DATA: ship_address}<br />
{ORDER_DATA: ship_city} &nbsp;{ORDER_DATA: ship_state} &nbsp;{ORDER_DATA: ship_zip}<br />
{ORDER_DATA: ship_city} {ORDER_DATA: ship_state} {ORDER_DATA: ship_zip}<br />
{ORDER_DATA: ship_country}
</td>
</tr>