by Miha Markič
30. April 2006 23:12
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 ;-))
54ce20d2-0ddd-49b9-acb8-97ee52dbf002|0|.0
Tags:
.net