For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2006 > Capitalize and accented characters









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Capitalize and accented characters
Osiris Pedroso

2006-05-16, 7:13 pm

I am seeing an odd result of capitalize.

Basically, the letter after an accented character is capitalized, as if =
it a
new word has started.
Ex:
The word typed is "gr=E1fica", the capitalized result returned by smarty =
is
"Gr=E1Fica".

In some SW I wrote, I consider words to match the regexp "[a-z=E0-=FC]", =
but I
think capitalize is matching "[a-z]" only.

Appreciate any insights,
Osiris Pedroso
--
Optimizer Consulting
http://www.swoptimizer.com
Phone: 1.415.259.5760
-----Original Message-----
From: Davide Muzzarelli [mailto:reg@dav-muz.net]=20
Sent: Tuesday, May 16, 2006 1:24 PM
To: smarty-general@lists.php.net
Subject: [SMARTY] Unassign plugin updated

The unassign plugin is updated, now it can unassign also an array item!
Unassign is good to mantain clean your templates.

The syntax is simple:
{unassign var=3D$foo}

For unassign an array item:
{unassign var=3D$foo.bar}

See and download at:
http://smarty.incutio.com/?page=3Dunassign

Byez!

--=20
Davide "Design" Muzzarelli
www . dav - muz . net
www. fraw . info - a PHP framework with Smarty

--=20
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com