Member-only story
8-bit vs 16-bit code unit: a PHP (Symfony) vs TypeScript (NextJS) tale for Frontend and Backend

If you have ever worked on a product that requires internationalisation and translations, you may have encountered a problem caused by multi-byte strings.
Furthermore, if you work as a Web Developer, you may have asked yourself how to check for multi-byte strings in PHP and JavaScript (or TypeScript).
I currently work for a company with its primary headquarters in Europe but another office in Asia.
We also have many users browsing from East Asia, so we needed to ensure our systems were ready to meet I18N requirements.
We initially built our monolithic project with PHP and Symfony. Then, we transitioned to a micro-service-based project, with some small utilities to handle specific operations written with JavaScript and powered by NodeJS.
Now, we are rebuilding the same project from scratch, using PHP and Symfony for the Backend API, NextJS for the Frontend running HTTP calls to both PHP API and NextJS API, and Symfony…