Welcome Guest, Not a member yet? Register   Sign In
Problem with form_submit() and charset
#1

[eluser]Isern Palaus[/eluser]
Hello,

I'm buliding a mutilingual site and I'm having troubles with using a lang line inside a form submit.

My form_submit looks like:
Code:
<?php echo form_submit('submit',$this->lang->line('creactienda_admin_tienda_button_anadir')); ?>

My lang file:
Code:
$lang['creactienda_admin_tienda_button_anadir']    = "Añadir";

In my template panel I've this in the header:
Code:
<?php echo doctype(); ?>
<html >
    <head>
        <?php header('Content-type: text/html; charset=utf-8'); ?>
        
        <title>
            <?php
                if($titulo)
                    echo sprintf($this->lang->line('creactienda_admin_base_titulo_seccion'), $titulo);
                else
                    echo $this->lang->line('creactienda_admin_base_titulo');
            ?>
        </title>
        
        <?php
            echo link_tag('assets/css/admin/panel.css');
            echo meta('Content-type', 'text/html; charset=utf-8', 'equiv');
            echo script_tag('assets/js/admin/panel.js');
            echo script_tag('assets/js/ckeditor/ckeditor.js');
        ?>
    </head>

With all this configuration, my submit prints: Añadir. Literal. If I change the line in the lang file with AƱadir (what I want to show), it shows: A?adir.

How can I solve this?

Thank you in advance,
Isern




Theme © iAndrew 2016 - Forum software by © MyBB