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.
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 |