package com.hubspot.jinjava.tree.output;

public class RenderedOutputNode implements OutputNode {

  private final String output;

  public RenderedOutputNode(String output) {
    this.output = output;
  }

  @Override
  public String getValue() {
    return output;
  }

  @Override
  public String toString() {
    return getValue();
  }

  @Override
  public long getSize() {
    return output == null ? 0 : output.length();
  }
}

@@ -35,16 +35,91 @@
 utput;%0A%0A
+import java.nio.charset.Charset;%0A%0Aimport com.google.common.base.Charsets;%0A%0A
 public c
@@ -490,16 +490,63 @@
 put.
+getBytes(Charset.forName(Charsets.UTF_8.name())).
 length
-()
 ;%0A  

use correct length()