# Unicode normalization forms

- Thread: https://externals.io/message/24228
- Original archive: https://news-web.php.net/php.internals/24228
- Started by Gwynne on 2006-06-29T09:13:49+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #24228 — Gwynne — 2006-06-29T09:13:49+00:00

URL: https://externals.io/message/24228#24228

Every time I see the Unicode support in PHP 6 getting better, I like  
it more. But I have a question related to a problem I recently had to  
solve with an external script in my code: Will there be any way to  
access different normalization forms from inside PHP? After a great  
deal of research and attempting various methods, I ended up using a  
hacked version of an ancient Perl script from W3C to get normalized  
Unicode, and I'm hoping there'll be something better in the offing. I  
don't have the Unicode skill to write a normalization routine as  
either PHP or a PHP extension, not to mention I don't want to haul  
around that giant datafile of decompositions :).

-- Gwynne, Daughter of the Code
"This whole world is an asylum for the incurable."

---

## #24229 — Andrei Zmievski — 2006-06-29T10:45:16+00:00

URL: https://externals.io/message/24228#24229 · In reply to: #24228

Yes, there will be an API to convert the text between various  
normalization forms. PHP itself, however, expects the strings you  
give it to be in the NFC form, in case you were curious.

-Andrei




> Every time I see the Unicode support in PHP 6 getting better, I  
> like it more. But I have a question related to a problem I recently  
> had to solve with an external script in my code: Will there be any  
> way to access different normalization forms from inside PHP? After  
> a great deal of research and attempting various methods, I ended up  
> using a hacked version of an ancient Perl script from W3C to get  
> normalized Unicode, and I'm hoping there'll be something better in  
> the offing. I don't have the Unicode skill to write a normalization  
> routine as either PHP or a PHP extension, not to mention I don't  
> want to haul around that giant datafile of decompositions :).
>
> -- Gwynne, Daughter of the Code
> "This whole world is an asylum for the incurable."
