Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

PLINQO: Unable to use UTF-8 strings are enum descriptions #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Enum table in the database and in the Description column use a 
string that contains non-US-ASCII characters.  In my case I need to use 
Eastern European chars that are part of Latin-2 (ISO/IEC 8859-2) codepage.
2. Generate Dbml and Entities used PLINQO templates
3. Look at DataContext.Enums.cs and notice that the Description attribute 
contains "?" for every non-US-ASCII character in the database Description 
columns

What is the expected output? What do you see instead?
My expectation is that that generated file retains the description text as 
specified in the database including non-US-ASCII chars.  The problem here 
is that the .cs file is not being saved with UTF-8 encoding.

What version of the product are you using?
r496

Original issue reported on code.google.com by stefan.n...@gmail.com on 1 Feb 2009 at 7:01

GoogleCodeExporter commented 9 years ago
Title should read: Unable to use UTF-8 strings _as_ enum descriptions 

Original comment by stefan.n...@gmail.com on 1 Feb 2009 at 7:02

GoogleCodeExporter commented 9 years ago
Nevermind... Problem solved with a CodeSmith feature by adding 
ResponseEncoding="UTF-
8" parameter to the <%@ CodeTemplate %> directive in the cst file.

Original comment by stefan.n...@gmail.com on 4 Feb 2009 at 12:00

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 6 Feb 2009 at 4:55

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 7 Oct 2009 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Dec 2009 at 5:43

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Dec 2009 at 6:03