simbolo do euro

Forum de conversa geral, provavelmente não relacionada com hardware. Apesar de ser treta, mensagens sem interesse serão moderadas!

Moderadores: Administradores, Moderadores

Mensagempor alfatek » Sexta Jul 09, 2004 1:46

# I am seeing &#nnnn; sequences output instead of what I typed!

To enable compliance with HTML and XHTML specifications as well as enabling browsers to automatically support a users selected language we enable a charset tag to be output to the browser. This identifies the primary character set the user has selected, eg. iso-8859-1 for Western European languages (English, German, French, etc.), windows-1251 for Cyrillic alphabets (Russian, Bulgarian, etc.) and so on. The downside to doing this is that most modern browsers (such as Internet Explorer) convert any character not present in that character set into what are termed Numerical Character References or NCR's. These take the form of &#nnnn; where nnnn is the hexadecimal number of that characters UNICODE reference.

Unfortunately PHP (which effectively supports only iso-8859-1 at this time) does not appear to attempt to process this data back into normal characters. Therefore phpBB treats them as text the user has entered and wishes to see. phpBB enables this by turning the & into &. This results in the characters appearing as they do. Although we could ignore &#nnnn; (there are pro's and of course con's to doing so) at present we don't.

If you are finding this to be problem the solution is to remove the

charset={S_CONTENT_ENCODING}

text from all the _header.tpl template files in all templates. The downside to this is a users browser will not automatically switch its charset to that selected by the user (however this is unlikely to be a big problem since users typically run their browser by default in the language they wish to use). Alternatively you can modify the $lang['ENCODING'] entry in the appropriate language file. Until PHP (and all browsers!) trully support UNICODE these problems will persist across all boards.



Vindo dos Faqs do PHPBB.com...

Assim sendo, em que língua tens o teu teclado, o teu browser, etc e tal ?
alfatek
Administrador
Administrador
 
Mensagens: 3257
Registado: Sábado Abr 06, 2002 18:28
Localização: Coimbra

Mensagempor alfatek » Sexta Jul 09, 2004 1:57

De referir que antigamente eu tinha o forum tal como era sugerido SEM o tal charset={S_CONTENT_ENCODING}, tal como eles recomendavam...

No entanto agora, voltei ao default do phpbb, experimentem assim a ver s dá problemas ou n...

€€€€€€

€€€€€€
alfatek
Administrador
Administrador
 
Mensagens: 3257
Registado: Sábado Abr 06, 2002 18:28
Localização: Coimbra

Mensagempor alfatek » Sexta Jul 09, 2004 1:58

E agora no IE:

€€€€€


€€€€€
alfatek
Administrador
Administrador
 
Mensagens: 3257
Registado: Sábado Abr 06, 2002 18:28
Localização: Coimbra

Mensagempor **!!_YaKuZa_!!** » Sexta Jul 09, 2004 12:25

Pacman Escreveu:Ctrl+Alt+5
€€€€€€€€


€ .....ta na mesma....:roll:....

E tão a ver? Kd alguem faz bem o simbolo (como o Pacman fez), kd copio/cito aparece mal...

alfatek, não entendi grande coisa dessa inglesada toda...
Tenho o Internet Explorer 5.5 em pt, o teclado n sei....
Eu axo k vou desistir...n dá d maneira nenhuma....:roll:
Imagem
**!!_YaKuZa_!!**
Membro Diamante
Membro Diamante
 
Mensagens: 1053
Registado: Segunda Mai 17, 2004 21:01

Mensagempor Soucerer » Sexta Jul 09, 2004 23:19

€€€€€€€

A mim, o sigla do Euro tb dá... tanto em ALT Gr+E ou Alt Gr+5....
Clevo D400V
Soucerer
Membro de Prata
Membro de Prata
 
Mensagens: 118
Registado: Terça Nov 04, 2003 18:22
Localização: Fiães@ ESSIP-Gaia

Mensagempor topinhas » Sábado Jul 10, 2004 1:19

O meu teclado tem uma tecla só para o símbolo do €.

Assim é muito mais fácil.€€€€€€
Pentium 4 2,8 @ 3,40 Thermalright XP-120, MSI NEO-2 FIS2R, 1,5 Gb DDR 400 Kingston, ATI 9700, IBM 120 Gb, 2 x Seagate SATA 200 Gb RAID, Seagate SATA 320 Gb, LG DVD-/+RW, DVD 16x, SB X-Fi Fatality, SuperFlower 4 fan 420W, Logitech Z-680
topinhas
Membro de Ouro
Membro de Ouro
 
Mensagens: 908
Registado: Quarta Out 15, 2003 16:00
Localização: São Domingos de Rana, Oeiras

Mensagempor c0ld sn3Ak3r » Sábado Jul 10, 2004 9:21

:lol: €h €h €h €h
c0ld sn3Ak3r
Aprendiz
Aprendiz
 
Mensagens: 82
Registado: Sábado Mai 08, 2004 17:03

Anterior

Voltar para Conversa da treta

Quem está ligado:

Utilizador a ver este Fórum: Nenhum utilizador registado e 1 visitante

cron