0

I've been running into errors importing specific entries in my custom module. Boils down to an issue with the Character Limit on the Plain Text fieldtype when importing international characters.

It seems like the Character Limit on the field is actually the number of bytes and not characters. The text I'm trying to import has some multi-byte Japanese characters, so it is reporting the length incorrectly.

I've had a poke around the Craft and yii source and found some string validation, but then it gets a bit beyond me.

For now I've just extended the length limit, but would good to work out if I have something setup incorrectly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.