diff options
Diffstat (limited to '')
-rw-r--r-- | cs-dotnet/src/gatsstring.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cs-dotnet/src/gatsstring.cs b/cs-dotnet/src/gatsstring.cs index 30b0afb..47b63ed 100644 --- a/cs-dotnet/src/gatsstring.cs +++ b/cs-dotnet/src/gatsstring.cs | |||
@@ -15,9 +15,14 @@ namespace Com.Xagasoft.Gats | |||
15 | Value = val; | 15 | Value = val; |
16 | } | 16 | } |
17 | 17 | ||
18 | public GatsString( string val ) | ||
19 | { | ||
20 | Value = System.Text.Encoding.UTF8.GetBytes( val ); | ||
21 | } | ||
22 | |||
18 | public override string ToString() | 23 | public override string ToString() |
19 | { | 24 | { |
20 | return Value.ToString(); | 25 | return System.Text.Encoding.UTF8.GetString( Value ); |
21 | } | 26 | } |
22 | 27 | ||
23 | public override void Read( Stream s, char cType ) | 28 | public override void Read( Stream s, char cType ) |