I am trying to read an rss
feed which data is written in Portuguese language.
What I want
- I read
rss
- Storing title and description in variables
- Then storing those variables in MYSQL using insert query
But when data inserting in database then some texts are in bad format
for example the actual title in rss feed is
problema com funções
but when store in my database then it store as following
problema com funções
I am using following code
$title=trim(htmlentities($title, ENT_QUOTES, "UTF-8"));
Same happening with description too. also I want to remove html tags also from description.
Anybody can help me?
thanks in advance