Feed RSS

Premios 20Minutos

International Year of Astronomy 2009

Txt files default as UTF-8 in Firefox

It’s crazy that, even in Ubuntu Linux, vanilla Firefox 3 still opens .txt files by default as ISO-8859-1 when they are encoded as UTF-8. So, after scratching my head for a while, I tried to trick it with a piece of XML:

<?xml version="1.0" encoding="UTF-8"?>

Yeah. If you use that header as the first line of the .txt file, Firefox will render it as UTF-8.

1 Reply

:

:


« Nofollow misuse harms Creative Commons
» Valencia Wifi at the beach