Hi,
i have a weather script on my site and this script gets info from some other site ... It also gets
the day info from that site ... Like Mon, Tue, Wed, ... and so on. And this is in my language and
one of the days in a week has a letter Č in the name. Now when that day apears, i dont get a letter
Č from that site, but i get ÄŚ ... how would i replace this ÄŚ, so that on my site it will be shown as
a letter Č ...
best regards,
heki
weather script gets info from other site
Started by HEki_, Dec 04 2007 04:57 AM
2 replies to this topic
#1
Posted 04 December 2007 - 04:57 AM
#2
Posted 04 December 2007 - 02:04 PM
<P>[quote name='HEki_' post='243880' date='Dec 4 2007, 11:57 AM']<BR>Hi,<BR><BR>i have a weather script on my site and this script gets info from some other site ... It also gets<BR>the day info from that site ... Like Mon, Tue, Wed, ... and so on. And this is in my language and <BR>one of the days in a week has a letter Č in the name. Now when that day apears, i dont get a letter<BR>Č from that site, but i get ÄŚ ... how would i replace this ÄŚ, so that on my site it will be shown as<BR>a letter Č ...<BR><BR>best regards,<BR>heki<BR>[/quote
]
Ok, this is the popular question. The problem is in the Charset. You should take a look about those from google and you will get it. I believe UTF-8 will work propely with your language. You have to set the charset in the header of your page so browser will "translate" text right..
Also a IF it doesn't help it might be that your website editor program has set the text for like ISO-1558-1 or something like that and it SHOULD be UTF-8, If it is like so then Ctrl+a, Ctrl+x and then set the unicode of your program for the UTF-8 or something wich works with your language! And then ctrl+v :)
I had this problem myself also. Friend of mine showed this, and I really ask you to read all about charsets they helped atleast me alot!
Sorry about those <br> and other tags, I messed while sending this.
]
Ok, this is the popular question. The problem is in the Charset. You should take a look about those from google and you will get it. I believe UTF-8 will work propely with your language. You have to set the charset in the header of your page so browser will "translate" text right..
Also a IF it doesn't help it might be that your website editor program has set the text for like ISO-1558-1 or something like that and it SHOULD be UTF-8, If it is like so then Ctrl+a, Ctrl+x and then set the unicode of your program for the UTF-8 or something wich works with your language! And then ctrl+v :)
I had this problem myself also. Friend of mine showed this, and I really ask you to read all about charsets they helped atleast me alot!
Sorry about those <br> and other tags, I messed while sending this.
Edited by Jonne, 04 December 2007 - 02:07 PM.
#3
Posted 05 December 2007 - 07:37 PM
MBString is a fantastic character encoding module for PHP.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
