@@ -308,8 +308,8 @@ export class StackFrame {
308308 * @param {Connection } connection
309309 */
310310 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 ) + "" ;
313313 this . type = stackFrameNode . getAttribute ( "type" ) ;
314314 this . line = parseInt ( stackFrameNode . getAttribute ( "lineno" ) , 10 ) ;
315315 this . methodOffset = parseInt ( stackFrameNode . getAttribute ( "methodoffset" ) , 10 ) ;
@@ -410,7 +410,7 @@ export abstract class BaseProperty {
410410
411411 public constructor ( propertyNode : Element ) {
412412 if ( propertyNode . hasAttribute ( "name" ) ) {
413- this . name = propertyNode . getAttribute ( "name" ) ;
413+ this . name = iconv . encode ( propertyNode . getAttribute ( "name" ) , ENCODING ) + "" ;
414414 }
415415 this . type = propertyNode . getAttribute ( "type" ) ;
416416 if ( propertyNode . hasAttribute ( "classname" ) ) {
@@ -424,7 +424,7 @@ export abstract class BaseProperty {
424424 if ( encoding && encoding !== "none" ) {
425425 this . value = iconv . encode ( propertyNode . textContent , encoding ) + "" ;
426426 } else {
427- this . value = propertyNode . textContent ;
427+ this . value = iconv . encode ( propertyNode . textContent , ENCODING ) + "" ;
428428 }
429429 }
430430 }
0 commit comments