I'm implementing the hook_form() in a module and need to pass some special characters as options to a select box.

Special characters like & are converted to it's "name code" (&) while characters like pund sign (£) or one-half (½) are not.

Since & is converted I can't pass the name-code for the special characters.

If anyone knows how I can get those special characters to appear in the select list I would highly appreciate the help.

Does the conversion take place in unicode.inc and how should I go about hacking that keeping things "future proof"?

Comments

Steven’s picture

Just use the characters as is, making sure your text editor is using UTF-8 encoding.

--
If you have a problem, please search before posting a question.

petterw’s picture

in eclipse I found that setting under Window/Preferences -> General/Workspace (Not under general/editor as it used to be)

Thanks for the help.|p