JsonContent: Pass FormatJson::UTF8_OK when beautifying JSON
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 16 Mar 2015 20:53:33 +0000 (21:53 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 16 Mar 2015 20:53:33 +0000 (21:53 +0100)
Currently it is not beautiful at all.

Change-Id: I82a07238b4213212b8e4a7150e35486f6dc90bc6

includes/content/JsonContent.php

index 1d9ee33..bf3a25b 100644 (file)
@@ -68,7 +68,7 @@ class JsonContent extends TextContent {
         * @return string
         */
        public function beautifyJSON() {
-               return FormatJson::encode( $this->getData()->getValue(), true );
+               return FormatJson::encode( $this->getData()->getValue(), true, FormatJson::UTF8_OK );
        }
 
        /**