MyBB Community Forums

Full Version: Special characters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

Can someone help me?
Im using an portuguese language in my forum. But always had problems using some special characters for example "ç", "ã", "ó", etc...

Because appears like that:
[Image: VBTGD.png]

In order to fix this, I need to replace the character with html code:
for "ç" I use "&ccdedil;", for "ó" I use "ó" etc...

But I dont want to have this work... I know that is possible to display my characters fine, only dont know how...

Can someone help me?

This is what I have in my header:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

This is my file code at inc/languages:
<?php
/**
 * MyBB 1.6 Portuguese Language Pack
 * Copyright 2010 MyBB Group, All Rights Reserved
 * 
 * $Id: portuguese.php 5641 2011-10-26 09:36:44Z Tomm $
 */

// The friendly name of the language
$langinfo['name'] = "Portuguese (Portugal)";

// The author of the language
$langinfo['author'] = "EN1GMA";

// The language authors website
$langinfo['website'] = "http://www.vozesnaweb.com/";

// Compatible version of MyBB
$langinfo['version'] = "1605";

// Sets if the translation includes the Admin CP (1 = yes, 0 = no)
$langinfo['admin'] = 1;

// Sets if the language is RTL (Right to Left) (1 = yes, 0 = no)
$langinfo['rtl'] = 0;

// Sets the lang in the <html> on all pages
$langinfo['htmllang'] = "pt-PT";

// Sets the character set, blank uses the default.
$langinfo['charset'] = "UTF-8";
?>

What Im doing wrong? Rolleyes
Thank you!
Are the files encoded with UTF-8?
Thank you for your reply Fabio

How to do that?
Get a text editor like Notepad++, open the language files with it, go to the Encoding menu and select UTF-8 without BOM. You'll need to do this to every file.
Didn't work...
After I make what you said:

[Image: C315jY.jpg]

the line that I edited, appear like that:
[Image: 4iCMB.png]

And appears like that in my forum:
[Image: EutK3.png]

Any suggestions? Rolleyes