Saturday, May 29, 2004

Dreamweaver Bug/"Feature" #2 or "Score Another One for Notepad"...

Dreamweaver's XHTML Validation feature will complain if it finds an ASCII character higher than 127 - most of the foreign letters, such as ê,ö,ä,ü, etc. fall into this category. "OK, fine", one thinks and proceeds to escape them with the appropriate ampersand-code-semicolon set (such as ü for ü - there's an Insert menu for Special Characters).

Oh, one would think...

But, Nooooo! Save the file, close the file, re-open the file...Hello ASCII characters higher than 127!

Yes, folks, they come back, on their own. Those carefully encoded ampersand-code-semicolon sets are gone. Bye bye.

Grrrr.

Never fear; there is a solution: Notepad.

And actually partly Dreamweaver - remember that Dreamweaver is known for not rewriting code it gets from someplace else. You use Notepad as your "someplace else" and put those ampersand-code-semicolon sets back in using Notepad and when you re-open in Dreamweaver they will be preserved.

Yay!

0 Comments:

Post a Comment

<< Home