Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Special characters
#1
Not Solved
This user has been denied support. This user has been denied support.
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!
#2
Not Solved
Are the files encoded with UTF-8?
#3
Not Solved
This user has been denied support. This user has been denied support.
Thank you for your reply Fabio

How to do that?
#4
Not Solved
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.
#5
Not Solved
This user has been denied support. This user has been denied support.
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


Forum Jump:


Users browsing this thread: 1 Guest(s)