Quote:
Originally Posted by Mosh
Try the answer to Question 16 in the FAQ section of the first post.
|
I missed that. Thankss.
In one of the link they said:
Quote:
For me it worked out that utf8_encode not worked properly in some cases, so i built this workaround to create tweets (below there is an extract with the interesting elements):
Code:
[...]
//html_entity_decode needs the Encoding Parameter!
$tweet = strip_tags(html_entity_decode($title,ENT_QUOTES,"UTF-8"));
$tweet = trim($tweet); // may help
[...]
//Check encoding again
if (mb_detect_encoding($tweet, "auto") != 'UTF-8'){
$tweet = utf8_encode($tweet);
}
//TRANSLITERATION via iconv
//
// Important: Use setlocale!
if (function_exists('iconv') && tweet_use_translit === true) {
setlocale(LC_CTYPE, 'de_DE.utf8');
$tweet = @iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $tweet);
}
[...]
|
That would work for me? Where i have to put that?