You are viewing an old Wolf's Little Store website. Please visit wolfslittlestore.be for the most recent version.

Wolf’s Little Store

December 18, 2007

Converting characters to HTML entities

The old way

picture-2.png
So we have to enter some Spanish in the language files of our CMS. That ó needs to be converted to an entity. We copy the special character and open our dashboard:
picture-3.png
We paste the character and hit enter:
picture-4.png
The HTML entities dashboard widget neatly tells us the correct entity is ó. We click it and paste the entity in our code.
picture-5.png

The HTML entities widget can be downloaded at Leftlogic. At the same page you can also do the same thing online. This is a pretty easy way to convert characters to HTML entitities. But it’s a bit on the slow side.

The new way (requires Textmate)

The new way is so much better. Select the entity in Textmate:

picture-6.png

Hit COMMAND+& and this menu comes up:

picture-7.png

Hit your “1″ key and voila: entity ready and you’re still in the same application, so you can continue your work smoothly.

picture-5.png

(This screenshot way kind of sucks, maybe I should try to do a screencast next time?)

8 responses

Leave a Reply

Write in English, stay on-topic and polite.