Multibyte characters display problem

Permalink Browser Info Environment
Hi,

we have encountered a problem with display of multibyte characters in fields data (e.g. placeholders, field descriptions etc), which get displayed as two (bad) glyphs each.

In our all-utf-8 setup the data in question lands in the database as it should, and the db connection works correctly otherwise. From what I have gathered, the problem lies in usage of utf8_encode in FormifyField::getFromArray, where a utf-8 string gets to be wrongly interpreted as a one-byte-encoded one.

I think we'll patch the code to remove the one usage of utf8_encode. Am I overlooking some other reason for this behaviour or a critically important functionality this is needed for?

Best regards, Max.

Type: Discussion
Status: New
maxdeineko
View Replies:

concrete5 Environment Information

Formify 2.6.5
C5 8 (details to follow)

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.