View Single Post
Old February 27th, 2009, 09:25 PM   #15 (permalink)
Luciano
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Quote:
Originally Posted by Chuck S View Post
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

Last edited by Luciano; February 27th, 2009 at 09:49 PM.
Luciano is offline   Reply With Quote