Forums / Cotonti / Support / charset=utf-8

Caspar Mick Westergaard Ringvig
#1 2013-06-23 10:27

Hello

I can not get my site to show and Danish characters æ ø å
It works fine when I do a news etc. But it is the text that is in the files. index etc.

Excuse my bad English.

Twiebie
#2 2013-06-23 13:42

Where exactly does it not show the Danish characters properly?
Is it content from the database or from the template?

You could try setting your encoding to utf8_danish_ci.

Caspar Mick Westergaard Ringvig
#3 2013-06-23 19:01

I would say it is in the template. where when I write news it works as it should and it'll come from the database

 

Added 4 days later:

Nobody can help me ?

This post was edited by Caspar Mick Westergaard Ringvig (2013-06-27 20:31, 10 years ago)
Kort
#4 2013-06-28 07:59

Try switching to a different text editor (i.e. Notepad++) or check template encoding. Should be UTF-8 without BOM.

SED.by - создание сайтов, разработка плагинов и тем для Котонти
Caspar Mick Westergaard Ringvig
#5 2013-06-28 16:44

right now it looks like this : <meta http-equiv="content-type" content="{HEADER_META_CONTENTTYPE}; charset=UTF-8" />   in header.tpl under my themes

Trustmaster
#6 2013-06-29 15:12

Next time you save any TPL file, pay attention to the charset your editor attempts to save the file in. As Kort has mentioned, it must be UTF-8 without BOM, otherwise problems with characters are pretty much possible. I hope this helps :)

May the Source be with you!
tensh
#7 2013-08-09 07:09

I think the tpl files should be utf-8 encoded by default...