Forums

the_title is messing with special characters (3 posts)

  1. mcmatt
    Member
    Posted 2 years ago #

    Hi!

    I have a huge problem. I'm presenting a rss feed on my homepage which is declared by the_title

    <?php
    $sokord = the_title('','',false);
    $url = "http://news.google.com/news?hl=en&q=" . $sokord ."&ie=UTF-8&output=rss";
    echo(read_rss_mini4("$url")); ?>

    So far so good...

    But when i have a word with a special character (åäö, i'm swedish) i want to rewrite the special character to different characters to get my function to work. for example: "ö" -> "%C3%B6"

    My feeling is that this problem i caused by a character rewrite in "the_title". How can I disable this?

    Ok, one more time. This is what i want

    Word = möte (declared by the_title)
    fetch rss = http://news.google.com/news?hl=en&q=m%C3%B6te (also declared by the_title) &ie=UTF-8&output=rss

    Can anyone help with this critical problem???

  2. mcmatt
    Member
    Posted 2 years ago #

    *bump* Does anyone have a solution?? Really can't figure this out myself

  3. kurosquare
    Member
    Posted 2 years ago #

    urlencode may help.

Topic Closed

This topic has been closed to new replies.

About this Topic