# HubL operations not supporting accented letters?

**URL:** <https://community.hubspot.com/t/hubl-operations-not-supporting-accented-letters/123750>\
**Category:** CMS Development\
**Created:** [January 12, 2025, 8:41pm UTC](https://community.hubspot.com/t/hubl-operations-not-supporting-accented-letters/123750 "2025-01-12T20:41:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EPerreault](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/eperreault/32/99678_2.png) [@EPerreault](https://community.hubspot.com/u/EPerreault)\
**Post date:** [January 12, 2025, 8:41pm UTC](https://community.hubspot.com/t/hubl-operations-not-supporting-accented-letters/123750/1 "2025-01-12T20:41:25Z")

</div>

I have an if statement checking if a certain tag is found within an array. The if statement works perfectly for the English side of our website but when working with French it seems to have an issue.  
I realised it was only missfiring for the tags that included letters with accents! Here is an example:

```lia-code-sample
{% set myTopics = ['Employés', 'Gestion', "Culture", 'Stratégie', 'Produit'] %}
{% set theTag = "Stratégie" %}

{% if theTag in myTopics %}
 //do a thing...
{% endif %}

```

When theTag = “Culture”, “Produit” or “Gestion” the operation works as intended, when its = “Employés” or “Stratégie” the operation fails even though the variable is clearly within the array.

Is this normal? Is there some sort of filter I could use to ignore the accents?  
Our blog & website is bilingual so I really need to find a solution to this issue!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 13, 2025, 4:55pm UTC](https://community.hubspot.com/t/hubl-operations-not-supporting-accented-letters/123750/2 "2025-01-13T16:55:51Z")

</div>

Hey there @EPerreault 👋 Thanks for your question!

This is known behavior with HubL and special characters. Have you tried utilizing a couple of HubL filters? Specifically [**lower**](https://developers.hubspot.com/docs/reference/cms/hubl/filters#lower) and [**regex\_replace**](https://developers.hubspot.com/docs/reference/cms/hubl/filters#regex_replace)?  
Here’s a quick example you can test with and tweak according to your needs:

```lia-code-sample
{% set myTopics = ['Employés', 'Gestion', "Culture", 'Stratégie', 'Produit'] %}
{% set theTag = "Stratégie" %}

{% if theTag|lower|regex_replace('[éè]', 'e') in myTopics|map(m => m|lower|regex_replace('[éè]', 'e')) %}
{# do something #}
{% endif %}

```

Have fun testing! — Jaycee
