Quote:
Originally Posted by Chuck S ucwords can not be used on special languages correct. I will pass that along. |
Neither can strtolower!!!!
which is definetely used more often than ucwords. But if you need strtolower there is a vbulletin function that can be used with specialchars: vbstrtolower(). it checks if you have mb_string extensions in php installed.. if yes it uses them.. if no it does only a stingtolower on english characters.. Didnt find any vbulletin replacement for ucwords :-(
as to
Code:
Content visible to verified customers only.
it will work with hungarian.. but can give you some unpredicted results with some languages and chars (chinese and russian.. depending if you use unicode or utf-8_general_ci in your database)
i removed all the addslashes stuff from my code for title AND description.. and just added, everywhere where title or description are added to database:
EXAMPLE: Code:
Content visible to verified customers only.
advantage: you dont have to worry about stripslashes when getting from db...
but you will need a:
Code:
Content visible to verified customers only.
when you pull from the db (instead of stripslashes)
hope that helps someone..
Luc