Topic: Cutenews 1.5 - Charset.

Hello everyone.

I have a little problem, my cutenews isn't working very well, I'm Portuguese and the cutenews doesn't respond very well...

This is the symbol who apears: �

I add a lot of codes:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
<?php header("Content-Type: text/html; charset=iso-8859-1",true); ?>

Can you help me??
Bye.

2 (edited by 2012-10-28 20:56:29)

Re: Cutenews 1.5 - Charset.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
<?php header("Content-Type: text/html; charset=iso-8859-1",true); ?>

The lang attribute in <html> isn't relevant for encoding issues.
Please also note that the declaration in the <meta> tag and in the HTTP header don't match. Choose either ISO-8859-1 or UTF-8.

Be sure that the same encoding is set in CuteNews, at Options > System Configurations > " Frontend default codepage".

My suggestion is to use UTF-8 consequently:
- Declare the charset as UTF-8 in the header and <meta> tag.
- Supply UTF-8 as encoding in CuteNews system configurations.
- A bit below, switch the setting "Use UTF-8" to yes.

Posts: 2

Pages 1

You must login or register to post a reply

CutePHP Forums → Problem Solving / Help & Support → Cutenews 1.5 - Charset.