package net.sourceforge.phpeclipse.xdebug.php.model;
import net.sourceforge.phpeclipse.xdebug.core.Base64;
+import net.sourceforge.phpeclipse.xdebug.core.PHPDebugUtils;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugException;
public XDebugStringValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
- rowValue = new String(Base64.decode(rowValue));
+ String encoding = PHPDebugUtils.getAttributeValue(value, "encoding");
+ if (encoding.equals("base64")) {
+ rowValue = new String(Base64.decode(rowValue));
+ }
setValueString(rowValue);
}