[pmwiki-devel] lower casing diacritics

Simon nzskiwi at gmail.com
Tue Oct 18 03:17:53 PDT 2022


Again, thanks heaps for answering these newbie questions, that works.
What I think I have found is that while html_entity_decode('Ē') gives "
Ē"
htmlentities ("Ē") doesn't convert Ē back to  Ē

Simon



On Tue, 18 Oct 2022 at 19:18, Petko Yotov <5ko at 5ko.fr> wrote:

> You can use mb_strtolower():
>
>    https://php.net/mb_strtolower
>
> Here is an example from the PHP interactive shell:
>
>    php > $str = "e.g. Ā to ā, Ê to ê, Į to į, etc";
>    php > print_r(mb_strtolower($str));
>    e.g. ā to ā, ê to ê, į to į, etc
>    php > print_r(mb_strtoupper($str));
>    E.G. Ā TO Ā, Ê TO Ê, Į TO Į, ETC
>
> Petko
>
> --
> If you upgrade :  https://www.pmwiki.org/Upgrades
>
>
> On 18/10/2022 06:46, Simon wrote:
> > Can anyone suggest a means of converting diacritic [1]characters to
> > lower case,
> > e.g. Ā to ā, Ê to ê, Į to į, etc
> > other than creating a translation table?
> >
> > thanks
> >
> > Simon
> >
> >
> >
> > Links:
> > ------
> > [1] https://en.wikipedia.org/wiki/Diacritic
> > _______________________________________________
> > pmwiki-devel mailing list
> > pmwiki-devel at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20221018/9d41718a/attachment.html>


More information about the pmwiki-devel mailing list