Reputation: 3934
is there an ISO 8859-1 Characters WYSIWYG Editor?
I would like to have a text-area with ISO 8859-1 buttons.
Any ideas?
Incorporating ISO 8859-1 characters into a textarea using php and mysql as backend.
Either have buttons so that users can click and insert them or type combination of dead keys and characters.
Upvotes: 1
Views: 645
Reputation: 564
edit: from the above comments I think that my suggestion is not as relevant as Pekkas.
htmlentities()
http://php.net/manual/en/function.htmlentities.php
There is a popular editor you can apply to textareas of html-forms. CKEditor: http://ckeditor.com/
Keep in mind and investigate their licensing, though. at their download section you still can download the original FCKeditor
This "editor" converts the input to the corresponding html entities where possible by default.
You should consider to configure a more suitable encoding for the entire project, though. That way you can save and handle the data in its "original" form with no need to code and recode. This also helps avoiding headaches trying to decode some string that has been converted twice or more times and then saved.
Upvotes: 0
Reputation: 449395
From the comments, I gather you want to create an input method for characters that aren't on the user's keyboard.
For a mouse-clicking approach, there is the jQuery virtual keyboard. It can switch between lots and lots of keyboard layouts. This is the easiest option because it's a ready-to-use product.
A key-binding approach (specific key combinations leading to specific special characters) I expect you would have to build yourself, but maybe the jQuery hotkeys plugin can be of some assistance.
Upvotes: 2