php - form textfield title in Drupal does not accept special caracters -
i'm trying give element of drupal form using form_alter hook title contains special characters (é,è,à ...)
$form['title'] = array( '#type' => 'textfield', '#title' => 'this title é à test', '#required' => true );
that gives me blank output on form page
using check_plain() function title not affect output :s ,still blank though it's encoding problem checked enc settings (database,server,theme template) set utf-8
please note when entering value contain special characters goes normal . think problem here drupal core doesn't accept special characters in #title field ?
well, first, should use english in code , translate it.
check encoding of file...
if try outside of drupal, plain php fail prints these characters, work?
Comments
Post a Comment