---
title: "Deprecation: #85120 - JavaScriptEncoder"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-85120"
source: "Changelog/9.3/Deprecation-85120-JavaScriptEncoder.rst"
typo3-version: "9.3"
typo3-major: 9
type: "deprecation"
issue: 85120
forge: "https://forge.typo3.org/issues/85120"
tags: ["PHP-API", "FullyScanned"]
rendered: "2026-09-17T21:17:42+00:00"
---

# Deprecation: #85120 - JavaScriptEncoder {#deprecation-85120-javascriptencoder}

See [forge#85120](https://forge.typo3.org/issues/85120)

## Description {#description}

The standalone utility class `\TYPO3\CMS\Core\Encoder\JavaScriptEncoder` has been superseded in TYPO3 6.2
by PHP's native `json_encode()` and `GeneralUtility::quoteJSvalue()` which provide significant
performance improvements. The utility class is thus marked for removal in TYPO3 v10.0.

## Impact {#impact}

Instantiating the class will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations {#affected-installations}

TYPO3 installations with custom extensions using this PHP class.

## Migration {#migration}

Use `GeneralUtility::quoteJSvalue()` or `json_encode()` with proper options as second parameter to
escape a string for JavaScript output.
