# Error while editing language definitions

**URL:** <https://community.open-emr.org/t/error-while-editing-language-definitions/18660>\
**Category:** Support\
**Created:** [June 21, 2022, 2:35pm UTC](https://community.open-emr.org/t/error-while-editing-language-definitions/18660 "2022-06-21T14:35:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergiors](https://community.open-emr.org/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@sergiors](https://community.open-emr.org/u/sergiors)\
**Post date:** [June 21, 2022, 2:35pm UTC](https://community.open-emr.org/t/error-while-editing-language-definitions/18660/1 "2022-06-21T14:35:59Z")

</div>

I am trying to edit some language definitions because I use OpenEMR in Spanish. However, any edition causes an error:  
Query Error  
Error: COLLATION ‘utf8mb4\_general\_ci’ is not valid for CHARACTER SET ‘latin1’

This error occurs in the official demo at [https://demo.openemr.io/openemr/](https://demo.openemr.io/openemr/)

I tried to change the collation in my database, without success. Any clue?

---

<div class="post-metadata">

**Author:** ![luisuriarte](https://community.open-emr.org/user_avatar/community.open-emr.org/luisuriarte/32/15503_2.png) [@luisuriarte](https://community.open-emr.org/u/luisuriarte)\
**Post date:** [June 22, 2022, 1:11pm UTC](https://community.open-emr.org/t/error-while-editing-language-definitions/18660/2 "2022-06-22T13:11:14Z")

</div>

Hola Sergio. Tuve ese error y creo que cambié los campos de textos (char, varchar, etc…) de las tablas lang\_constants, lang\_custom y lag\_definitions a collation = utf8mb4\_general\_ci y funciono.  
Suerte.  
Luis.
