Sunday, February 26, 2012

More text encoding issues

Is it me or is TextEdit for the mac just not very good at figuring out text encodings?

I'm trying to create a new HTML file from a word doc that has spanish characters in it. If I cut and paste into TextEdit, that works/looks fine, but if I try to display in Safari the character mapping is off. However if I then save the TextEdit file as UTF-8 and then use iconv to convert to ISO-8859-1, then all is fine. Trying to save the TextEdit file as Western OS doesn't do the trick.

I did try to add a meta charset tag to the HTML, but either I did it wrong or it was ignored.

No comments:

Post a Comment