rgb192
asked on
read input file and echo accent mark
I think because of the accent mark on the letter 'o'
Diana Cristóbal
is represented in an .eml file as
=?iso-8859-1?B?RGlhbmEgQ3J pc3TzYmFs? =
when I view .eml file using notepad++
but in thunderbird, outlook it is
Diana Cristóbal
how can I use php to echo
Diana Cristóbal
Diana Cristóbal
is represented in an .eml file as
=?iso-8859-1?B?RGlhbmEgQ3J
when I view .eml file using notepad++
but in thunderbird, outlook it is
Diana Cristóbal
how can I use php to echo
Diana Cristóbal
You need to set utf-8 to show the accent texts
ASKER
please give example of utf-8 starting with
input text: =?iso-8859-1?B?RGlhbmEgQ3J pc3TzYmFs? =
output text: Diana Cristóbal
input text: =?iso-8859-1?B?RGlhbmEgQ3J
output text: Diana Cristóbal
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What you're looking at here is commonly known as a character-encoding collision. The situation arises because someone used an ASCII file, but tried to declare it to be UTF-8, or vice-versa. Here is an explanation.
http://www.joelonsoftware.com/articles/Unicode.html
The goal to avoid these collisions is to make sure you've got consistent encodings, including your text editor, your HTML form input fields, your data base and your script outputs.
http://www.joelonsoftware.com/articles/Unicode.html
The goal to avoid these collisions is to make sure you've got consistent encodings, including your text editor, your HTML form input fields, your data base and your script outputs.
ASKER
this code worked for me thanks
I did not understand Ray's advice yet
but will probably have a follow up question about what Ray wrote in the future.
I did not understand Ray's advice yet
but will probably have a follow up question about what Ray wrote in the future.
Open in new window