encodage de caractere

Par d4d0, il y a 11 ans


Bonsoir,

mon lien :

<?php echo $this->Html->link('#', array('controller' => 'artists', 'action' => 'index', "#" => "#"));?>

affiche :

http://..../index#%23

au lieu

http://...../index##

j'ai essaye avec urldecode, rien a faire.
pourriez vous m'aider, merci.

4 réponses

Romano83, il y a 11 ans

Tu as bien défini le charset en UTF-8 ? Parce que chez moi ça passe sans problème ;)

d4d0, il y a 11 ans

oui

Romano83, il y a 11 ans

Et au niveau de ton fichier route.php ça donne quoi ?

d4d0, il y a 11 ans

c'est a dire ??

je me suis peut être mal exprimé .
je veux un classement alphabétique :

- A - B - C - D - ... - Y - Z.

<?php echo $this->Html->link('#', array('controller' => 'artists', 'action' => 'index', "#" => "#"));?>
<?php echo $this->Html->link('#', array('controller' => 'artists', 'action' => 'index', "#" => "A"));?>
<?php echo $this->Html->link('#', array('controller' => 'artists', 'action' => 'index', "#" => "B"));?>
<?php echo $this->Html->link('#', array('controller' => 'artists', 'action' => 'index', "#" => "C"));?>

ça marche. mais le #, je n'y arrive pas.