Solved

php encoding issue

Posted on 2009-06-29
2
209 Views
Last Modified: 2013-11-18
Hi,

I've created a basic php rss reader, and am trying to translate a utf-8 feedburner feed into ISO-8859-1 to embed in my website. I'm using utf8_decode() on the text I get back from the feed, however it doesn't seem to be working. Instead of getting â¬S for quotes and â¬" for apostrophe's, all of those characters are just converted into question marks. The same thing happens when I use mb_convert_encoding($entry->title,"ISO-8859-1", "UTF-8").  How can I get these characters to appear correctly?

Thanks


0
Comment
Question by:Armsbottomer
2 Comments
 
LVL 5

Accepted Solution

by:
Jagarm earned 500 total points
ID: 24736649
0
 

Author Closing Comment

by:Armsbottomer
ID: 31597944
Iconv did the trick. Cheers!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question