Unicode and Line Breaks

By Oli
At 9:39 AM · Tuesday, 4 March · 2003
To Coding

When using Unicode UTF-8 formatted files, be careful of the line breaks. If you use Unicode’s line breaks, the page won’t validate. There are also potential display errors in some browsers (with the line-break character being treated as a <br> tag or an unknown character). Unix line breaks are a better option. Also, if you’re coding with BBEdit make sure you save the file as a Unicode UTF-8 file first (without a Byte Order Mark). BBEdit won’t automatically save as Unicode if you declare your charset as UTF-8, unless it saves everything as UTF-8 by default (can be changed in the Prefs).

Anyone know what fonts we should specify when using CSS for Japanese?

Discussion...

Comments (0)