We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Unicode character breaks EE tags parsing

How Do I?

darien's avatar
darien
5 posts
10 years ago
darien's avatar darien

We just developed a site that will be used primarily with the Lithuanian (lt) character set. When either of two letters in particular appear on a page, either entered directly into a template or when pulled from exp:channel:entries, ALL PARSING OF EE TAGS IMMEDIATELY STOPS.

Here is a simple example that demonstrates this:

<!DOCTYPE html>
<html lang="lt">
<head>
<meta charset="utf-8"/>
<title>Broken Lithuanian character example</title>
[removed]
</head>
<body>

{if segment_1 == "global"}
 This text appears as expected.
{/if}

This letter ž is a mystery

{if segment_1 == "global"}
 Same conditional, but not parsed after specific unicode character.
{/if}

</body>
</html>

The resulting page appears as:

This should display with no tags around it.

ž

{if segment_1 == "global"}
Identical if statement as shown above, now broken.

I have added $config[‘allow_extensions’] = ‘n’; to the config file to ensure this is not a third party issue.

ANY suggestions?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.