I am having charset problem.
I am working on a crawler when i crawling 3 pages two of them are utf-8 and one is iso-8859-1
the page where i show the data if if use "utf-8" the data coming from other pages which are iso-8859-1 get disturbed and if i use iso-8859-1 data from the page utf-8 gets disturbed.
any suggestion.
thank you,
charset problem
Moderator: General Moderators
Take a look at http://de2.php.net/utf8_encode and http://de2.php.net/mbstring
- itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
- Contact:
i tried utf8_encode() to encode ISO strings to utf-8 and tried to show print them but no luck.
I also tried to use both these lines but its not working:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
i tried:
its gives me following output:
Pesin alisverislerinize %10 indirim uygulanmaktadir.
just wanted to know if there is any way so that i can make same as its in string for utf-8
I also tried to use both these lines but its not working:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
i tried:
Code: Select all
utf8_encode ("Peşin alışverişlerinize <font color=\"ff0000\">%10 indirim</font> uygulanmaktadır.");Pesin alisverislerinize %10 indirim uygulanmaktadir.
just wanted to know if there is any way so that i can make same as its in string for utf-8