salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.53k stars 2.09k forks source link

SuiteCRM 7.9.3 isn't saving UTF-8 characters on all modules #3923

Closed cumanacr closed 7 years ago

cumanacr commented 7 years ago

Issue

The UTF-8 characters in the text are removed on saving in all modules. This bug is especially annoying creating email templates on campaigns module.

Expected Behavior

Saving an opportunity: Opportunity name: Spanish = Español Opportunity description: Vowels = aeiou | Vowels branded: áéíóú | Clay-colored thrush = Yigüirro

Actual Behavior

Saving an opportunity: Opportunity name: Spanish = Espal Opportunity description: Vowels = aeiou | Vowels branded: | Clay-colored thrush = Yigrro

Possible Fix

I tested on SuiteCRM 7.9.2 and backward and everything worked as expected, the bug was introduced on SuiteCRM 7.9.3

Steps to Reproduce

  1. Create a new oportunity with any UTF-8 character on name, eg: Español
  2. The UTF-8 character and the following non-UTF-8 character aren't save, eg: Espal (ño disappear)

Context

I was creating an email template on campaigns module with mozaik and notice how several characters dissapear

I then check in another instance with SuiteCRM 7.9.2, 7.9.1 and backward and the same text was saved without problem.

Then I check creating some opportunities, contacts, accounts, etc and the problem appears on every module.

You can check on a test enviroment with SuiteCRM 7.9.2 UTF works: git reset --hard 084f2f3f1 084f2f3f1 You can check on a test enviroment with SuiteCRM 7.9.3 UTF doesn't work: git reset --hard 3daeb36ed 3daeb36ed

Your Environment

javitoron commented 7 years ago

This is a duplicate of #3903 and there is an easy fix there!

cumanacr commented 7 years ago

@javitoron thank you indeed commit 74a4c5583d2aa435081821272893eda54d56b42b fixed