free flash templates forum

free flash templates forum (http://forum.freenicetemplates.com/index.php)
-   Free flash templates (http://forum.freenicetemplates.com/forumdisplay.php?f=2)
-   -   [SOLVED] Template 9 - special characters question (http://forum.freenicetemplates.com/showthread.php?t=56)

Anabass 06-05-2009 10:58 PM

Template 9 - special characters question
 
Hi,

I have another question, related to Tempelate no.9 - I am using our special regional characters such as ľ, š, č, ť, ž and so and different .htm files display them different! I am modifying everything with PSPad. Check my development version:

http://www.hitechweb.genezis.eu/furdaphoto/

For example when I modified file _news.htm, everything is OK - it means every character displays correctly. But when you take a look on the homepage (index.htm) and news on the left side, it incorrectly displays the character "č", but other characters such as "á", "š", "é" are correct. And now, when I modified the file _portfolio ("photos" in my case), every special character is displayed wrong!

I used the test characters sentence "Test ľ š č ť ž ý á í é ň" and applied it to the "news" and "aviation" files on the same time. In the "news" file everything is OK and in the same time and with the same style added sentence to "aviation" page, it displays totaly wrong. How is it possible?

Anabass 06-06-2009 12:15 AM

Okey, I did some tests and here are the results. Probably they will be usefull in case to find the solution.

Because in the _news.htm file (news) everything displays correctly, i decided to to make a copy of its soucre code from top to bottom, it means every character, and paste it to the _letectvo.htm file (aviation). You can see the results. News in the Firefox is displayed correctly while Aviation is completely wrong. With IE7, the only difference is, that in the Aviation, the special characters are displayed as the "?"

Another interesting thing is that I checked also another web, that is using the Tempelate no.9 http://time2talk.tym.sk/ and I attach the results as the image. As you can see, in the Firefox the top banner, menu and news are wrong while content is displayed correctly with all its characters. When using IE7, everything look as it should look without any problem.

FIREFOX 3.0.10 (freshly installed)
http://img15.imageshack.us/img15/9748/firefoxbdu.th.jpg

IE7
http://img15.imageshack.us/img15/7913/ie7f.th.jpg

freenicetemplates 06-06-2009 01:04 PM

Encoding problem with flash template
 
Hi Anabass,
I think the problem is coming from the encoding _letectvo.htm.
Can you try to open it with notepad and save it again and chose UTF-8 encoding ?
Doeas it solve your problem ?
Regards

Anabass 06-06-2009 05:51 PM

Yes, it solved the problem related to content of the web, thank you. However the same solution applied to index.htm had opposite result. The test characters were completely wrong. So I tried ISO 8859-2 encoding, the same, that is defined in the head of the page. Then the half of the characters displayed correctly and the rest wrong. So finaly I tried Windows CP1250 encoding and everything is now OK.

So everybody, that is using unstandard (middle Europe in this case) characters in his web should encode the content of the page using UTF-8 and the file index.htm using the encoding Windows CP1250. It is also necessary to modify the head in the file index.htm and replace the original code:

Code:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
...with the new one:

Code:

<meta http-equiv="Content-Type" content="text/html; charset=CP1250" />


All times are GMT. The time now is 12:22 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.