Date: May 15th, 2003
Cate: Geekism
Tags:

Character to entity encoder bookmarklet

Why would you use a ridiculous page like this one to convert non-ASCII characters to HTML entities when a totally sweet bookmarklet is available?

(encodes all characters above 127 to HTML entities in every <input type=text> and <textarea> on the current page.)

6 Comments

  1. May 19th, 2003
    REPLY))

  2. I\’m having trouble getting this to work in Firebird (latest), is this supported?

    1F

  3. stevesteve  
    May 19th, 2003
    REPLY))

  4. jh – Glad you like it!

    James – I haven\’t tested it on Firebird. I\’ve tried it on Mozilla 1.2 (PC and Mac) and IE 5.5 (also PC and Mac). I\’ll try Firebird tonight and see what happens.

    2F

  5. stevesteve  
    May 19th, 2003
    REPLY))

  6. Works for me in Firebird 0.6. (about says \”Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6\”)

    3F

  7. August 3rd, 2003
    REPLY))

  8. á

    4F

    Worked perfectly for me in Firebird 0.6.1 (Windows XP)

    Steve, you mentioned in the comment you left on my site that you use the bookmarklet to post weblog entries with Chinese characters and whenever you post comments on other people\’s sites and are not sure their systems can handle the characters directly.

    I\’d be interested in your response to Michael Glaesemann\’s comment in which he argues that it\’s better to use characters rather than entities:

    http://weblog.delacour.net/archives/2003/10/there_aint_no_such_thing_as_plain_text.php#comment3016

    I would also have thought that whether or not the characters are handled properly depends on whether CJK support has been enabled, not that the characters have been replaced by entities. (But I hasten to admit that, like Manuel in Fawlty Towers: \”I know nothing!\”)

    5F

    Good, but I need a simpler bookmarklet to turn “<” and “>” into entities, so I can easily post code snippets.

    6F

Leave a Reply

 Name

 Mail

 Home

[Name and Mail is required. Mail won't be published.]