File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public IEnumerable<Log> Convert(string text) {
39
39
} ;
40
40
41
41
MemoryStream stream = new MemoryStream ( ) ;
42
- StreamWriter writer = new StreamWriter ( stream ) ;
42
+ StreamWriter writer = new StreamWriter ( stream , Encoding . UTF8 ) ;
43
43
writer . Write ( text ) ;
44
44
writer . Flush ( ) ;
45
45
stream . Position = 0 ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ private void DataReceived(IAsyncResult ar) {
77
77
bool isRightPort = ( wantedIpEndPoint . Port == receivedIpEndPoint . Port )
78
78
|| wantedIpEndPoint . Port == 0 ;
79
79
if ( isRightHost && isRightPort ) {
80
- string receivedText = Encoding . ASCII . GetString ( receiveBytes ) ;
80
+ string receivedText = Encoding . UTF8 . GetString ( receiveBytes ) ;
81
81
82
82
if ( ApplicationConfiguration . IsMessageTraceEnabled ) {
83
83
Logger . Trace ( receivedText ) ;
You can’t perform that action at this time.
0 commit comments