Diacritics in template files

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
maciekt
Posts: 2
Joined: Fri Mar 04, 2011 3:51 pm

Diacritics in template files

Post by maciekt »

I've noticed that diacritics symbols "destroys" templates. For example my modifications of main.tpl file:

Code: Select all

<script type="text/javascript" src="inc/js/suggest.js"></script>
<!-- Instant Response -->
<div id="instantresponse">
    
</div>

<div>To jest test: zażółć gęślą jaźń</div> // test polish diacritics

<!-- News -->
<div id="news">
<h2>{writeNewsHeader}</h2><!-- {writeNewsRSS}</h2> -->
{writeNews}
<p>{showAllNews}</p>
<!-- <p align="center">{writeNumberOfArticles}</p> -->
</div>
causes:
To jest test: za��� g�l� ja��
{writeNewsHeader}
{writeNews}

{showAllNews}
Changed

Code: Select all

<div>To jest test: zażółć gęślą jaźń</div>
to

Code: Select all

<div>To jest test</div>
and everything is OK.
fake91
Posts: 13
Joined: Wed Mar 02, 2011 10:53 am

Re: Diacritics in template files

Post by fake91 »

Hi
I`m also from Poland
It`s coused by the coding of tpl file
It should be in UTF8 (notepad save as ANSI)
maciekt
Posts: 2
Joined: Fri Mar 04, 2011 3:51 pm

Re: Diacritics in template files

Post by maciekt »

fake91 wrote:It should be in UTF8 (notepad save as ANSI)
Dzięki. Działa. / Thanks. It worked.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Diacritics in template files

Post by Thorsten »

Hi,

correct, please save all files in UTF-8.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply