0

I'm using Microsofts Expression Web 5 to edit my HTML documents. I have noticed a strange behaviour when using the 'Reformat HTML' method.

If my html document (UTF-8) contains html entities in the like of € the entity is replaced by a euro character. The html entities with a special meaning like '<' and '>' will not be replaced. So '<' (read: ampersand-l-t-semicolon) is left untouched.

Why does Expression Web do this?? I'm pretty sure it's best practise to use html entities whenever you can.

Pekka
  • 442,112
  • 142
  • 972
  • 1,088
mathijsuitmegen
  • 2,270
  • 1
  • 34
  • 36

3 Answers3

1

Why does Expression Web do this?? I'm pretty sure it's best practise to use html entities whenever you can.

Actually, no: In a UTF-8 document, it's fine to use proper UTF-8 characters over HTML entities.

So, what Expression Web is okay (Although this is a feature one should be able to turn off somewhere).

Related discussion:

Community
  • 1
  • 1
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
0

Actually all you need to do is:

  1. Tools > Page Editor Options
  2. Go to Default Fonts tab
  3. Change the language to Unicode (UTF-8)
  4. Click OK
  5. Close and reopen the HTML file

That will do it.

Perjan Duro
  • 352
  • 5
  • 13
  • Hi Perjan, Thanks for your answer. I re-installed Expression Web 4 and could not replicate the original behavior I had trouble with. So for now I could not try your solution. – mathijsuitmegen Jan 09 '13 at 13:06
0

There's no Expression Web 5 (version 4 is the latest).

Roman
  • 21
  • 1
  • 1
  • 1
    Hmm, you're right. Presumably I used Expression Web 4. I have since re-installed my PC so can't check. But there's definitely no version 5 at this time! – mathijsuitmegen Mar 15 '11 at 10:47