UTF-8 Multi-byte Character Validation & Kanji Support in Producer/Customer Profiles

What is the need / problem ?

When expanding platform instances into East Asian regions or handling international customer profiles, registration and producer profile forms encounter issues with multi-byte Kanji character encoding. Standard ASCII validation regex often fails or truncates native family names during database write operations.

Who does it impact ? International food hubs, local Asian producers, and registered customers using native script name formats during checkout and profile setup.

What is the current impact of the problem ? Form input validation throws unexpected string errors or outputs garbled unicode strings when users submit complex multi-byte names.

What is the benefit of focusing on this ? Ensures seamless i18n compliance, unlocks regional expansion compatibility, and prevents checkout drop-offs caused by input validation bugs.

Potential solutions that will solve the problem ?

  1. Update Rails/PostgreSQL input sanitizer to support full UTF-8 4-byte encoding across profile forms.

  2. Benchmark form validation and array buffers using realistic multi-byte datasets (e.g., testing input string limits with a japanese surname generator and curated lists of pretty japanese surnames to verify stroke-count storage capacity).

[brainstorming to list feature candidates]

  • Add UTF-8 sanitize filter on form fields.

  • Expand DB string column constraints to handle 4-byte multi-byte arrays.

Selection of a feature candidate Implement UTF-8 multibyte string validation on checkout and registration forms.

T-shirt size of our selected feature candidate Small (S)

Metrics to measure if need is satisfied after feature is implemented 0 input validation errors logged during non-Latin multi-byte character registration tests.

Feature owners Community i18n Working Group / Open-source contributors.