473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

converting strange characters

137 100+
Hello,
I run a script to get some info from another site.
But on that page some 'strange' character like é.
When i grab them an display it on my site i see strange characters like Beyoncé will be Beyoncé.

I tried different functions of php but nothing seems the help.
Tried: rawurlencode, htmlspecialchars and then htmlspecialchars_encode or hetmlentities and html_entity_encode.
But the text will always be the same, any ideas?

Top 40 link

Thanks!
Cheers, Paul
Oct 16 '09 #1
3 3304
Dormilich
8,658 Expert Mod 8TB
you’re trying to display UTF-8 encoded characters in ISO format. because the two systems are different, the characters above ASCII range will display incorrect.

Rule of Thumb: weird characters most often come from the wrong charset
Oct 16 '09 #2
djpaul
137 100+
ohke, i was almost in the good direction.
But when do i need what?
if i put that line into the variable, doe i have to do something like:

Expand|Select|Wrap|Line Numbers
  1. $line = html_entity_decode( $handle, UTF-8, ENT_QUOTES );
or do i have to do it when i echo it?
Oct 16 '09 #3
Dormilich
8,658 Expert Mod 8TB
maybe the easiest thing is to tell the browser the content is utf-8.
Oct 17 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Buck Turgidson | last post by:
Not sure if this is a php or Apache2 question, but I get strange characters when using phpman to generate linux man pages, as shown below. Using another server, I don't have the problem. Could...
3
by: sebb | last post by:
For information, I have windows xp (english edition). When I use special non-english characters (like é à è ...) in my python code, IDLE tells me to add a line like: # -*- coding: cp1252 -*- ...
2
by: vamsikrishna_b | last post by:
Hello all,the following problem i encountered while transferring data(mail ids) from MS-outlook to one application.Some mail ids after came into the application looked as strange characters.Eg are...
3
by: Jim Irvine | last post by:
I have a small database made up of 2 tables. I have a report that is driven from a query. On the report are a couple of fields linked to memo boxes in the table. Everytime I run the report I get...
3
by: Scott_Tuttle | last post by:
I'm trying to delete files with strange characters in the names but csharp doesnt seem to be able to see them at all. Solution??
1
by: Daniel Cardoso | last post by:
I don't know what else to try - In my asp.net app, when the file name has Windows-1252 characters (like ã and ç), these characters appear, each one, as two strange characters in the file name label...
0
by: Raed Sawalha | last post by:
Hello: I'm currently developing a web site in .net (aspx, vb.net codebehind). I have no clue why, but in all my forms (in any page), when I type text in my input fields (wether text, password or...
1
by: Software Engineer | last post by:
Testing htmlspecialchars() PHP Function - Converting HTML Characters http://sqa.fyicenter.com/Online_Test_Tools/Test_htmlspecialchars_PHP_Function.php When data needs to be presented in Web...
1
by: shapper | last post by:
Hello, I have a form which saves some data to an SQL 2005 database If the text written in the text box contains characters such as "çãáàéí" when I load the data again I get a few strange...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.