Welcome to RightHand's community place Sign in | Join | Help

Utf8 and CodeSmith

If you are dealing with non-ASCII fonts in CodeSmith templates or their outputs then you probably noticed that non-ASCII chars are replaced with question marks. There is a cure though.

Place ResponseEncoding="utf-8" attribute in <%@ CodeTemplate %> node of cst file (CodeSmith template) like this:

That's it. Both CodeSmith source file and output will happily contain all of your weird chars (why is there a need for non-ASCII anyway ;-))

Published 30. april 2006 22:12 by Miha Markic
Filed under:

Comments

New Comments to this post are disabled