@@ -308,8 +308,8 @@ export class StackFrame {
308
308
* @param {Connection } connection
309
309
*/
310
310
public constructor ( stackFrameNode : Element , connection : Connection ) {
311
- this . method = stackFrameNode . getAttribute ( "method" ) ;
312
- this . fileUri = stackFrameNode . getAttribute ( "filename" ) ;
311
+ this . method = iconv . encode ( stackFrameNode . getAttribute ( "method" ) , ENCODING ) + "" ;
312
+ this . fileUri = iconv . encode ( stackFrameNode . getAttribute ( "filename" ) , ENCODING ) + "" ;
313
313
this . type = stackFrameNode . getAttribute ( "type" ) ;
314
314
this . line = parseInt ( stackFrameNode . getAttribute ( "lineno" ) , 10 ) ;
315
315
this . methodOffset = parseInt ( stackFrameNode . getAttribute ( "methodoffset" ) , 10 ) ;
@@ -410,7 +410,7 @@ export abstract class BaseProperty {
410
410
411
411
public constructor ( propertyNode : Element ) {
412
412
if ( propertyNode . hasAttribute ( "name" ) ) {
413
- this . name = propertyNode . getAttribute ( "name" ) ;
413
+ this . name = iconv . encode ( propertyNode . getAttribute ( "name" ) , ENCODING ) + "" ;
414
414
}
415
415
this . type = propertyNode . getAttribute ( "type" ) ;
416
416
if ( propertyNode . hasAttribute ( "classname" ) ) {
@@ -424,7 +424,7 @@ export abstract class BaseProperty {
424
424
if ( encoding && encoding !== "none" ) {
425
425
this . value = iconv . encode ( propertyNode . textContent , encoding ) + "" ;
426
426
} else {
427
- this . value = propertyNode . textContent ;
427
+ this . value = iconv . encode ( propertyNode . textContent , ENCODING ) + "" ;
428
428
}
429
429
}
430
430
}
0 commit comments