Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Unicode in templates

Go to End

2 Posts   1427 Views


Community Member, 13 Posts

12 May 2011 at 9:16pm

Edited: 12/05/2011 9:17pm

I'm writing primarily a Norwegian site but writing the special Norwegian characters "ÆØÅ" inside templates doesn't work. Some question marks appears where the characters arrives. It works writing in the CMS editor to the database and then displaying, however in templates no. Is unicode in templates impossible?

My _config.php:


//test setting charset:

// This line set's the current theme. More themes can be
// downloaded from

// Set the site locale

//set default language

//Set languages to use
	'nb_NO', //Norwegian bokmal
	'en_US', //US english

Object::add_extension('SiteTree', 'Translatable');
Object::add_extension('SiteConfig', 'Translatable'); //2.4 or newer only

// enable nested URLs for this site (e.g. page/sub-page/)


Community Member, 41 Posts

14 May 2011 at 12:44am

Which editor do you use? Try to use Notepad++ and be sure that .ss files are having encoding 'UTF-8 without BOM'. Silverstripe has no problem with unicode characters.